0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 02:23:09 -05: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
}
}