Skip to content

Commit

Permalink
APIv3 sync only on srvModified
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosKozak authored Sep 25, 2023
1 parent a09e586 commit 8b5c3d8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/api3/generic/history/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@ function parseFilter (opCtx) {
}

return [
{ field: 'srvModified', operator: operator, value: lastModified.getTime() },
{ field: 'created_at', operator: operator, value: lastModified.toISOString() },
{ field: 'date', operator: operator, value: lastModified.getTime() }
{ field: 'srvModified', operator: operator, value: lastModified.getTime() }
];
}

Expand All @@ -116,9 +114,7 @@ function parseFilter (opCtx) {
*/
function prepareSort () {
return {
srvModified: 1,
created_at: 1,
date: 1
srvModified: 1
};
}

Expand Down

0 comments on commit 8b5c3d8

Please sign in to comment.