fix(syncing-server): order by for identical created at date

This commit is contained in:
Karol Sójko 2023-10-10 14:16:02 +02:00
parent 3df14149f0
commit 29e573e9b5
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -237,7 +237,7 @@ export class MongoDBItemRepository implements ItemRepositoryInterface {
.toLowerCase()
.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''))
options.order = { [sortBySnakeToCamelCase]: query.sortOrder }
options.order = { [sortBySnakeToCamelCase]: query.sortOrder, _id: 'ASC' }
}
if (query.uuids && query.uuids.length > 0) {