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:
parent
9a98712db7
commit
819e56d9ca
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue