mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
fix: user delete sync query sort by id (#16420)
This commit is contained in:
parent
9a98712db7
commit
819e56d9ca
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user