Skip to content

Commit

Permalink
fix: user delete sync query sort by id
Browse files Browse the repository at this point in the history
  • Loading branch information
zackpollard committed Feb 28, 2025
1 parent a185e06 commit 634d240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/repositories/sync.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 634d240

Please sign in to comment.