1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

fix: user delete sync query sort by id (#16420)

This commit is contained in:
Zack Pollard
2025-02-28 15:22:36 +00:00
committed by GitHub
parent 9a98712db7
commit 819e56d9ca

View File

@@ -53,7 +53,7 @@ export class SyncRepository {
.select(['id', 'userId'])
.$if(!!ack, (qb) => qb.where('id', '>', ack!.updateId))
.where('deletedAt', '<', sql.raw<Date>("now() - interval '1 millisecond'"))
.orderBy(['deletedAt asc', 'userId asc'])
.orderBy(['id asc'])
.stream();
}
}