Skip to content

Commit

Permalink
reinstate timestamp comparison (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
HughParry authored and forgetso committed Feb 24, 2025
1 parent c231f8a commit bb1e7b3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/database/src/databases/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,20 @@ export class ProviderDatabase
filterNoStoredTimestamp,
{
$expr: {
$lt: ["$storedAtTimestamp", "$lastUpdatedTimestamp"],
$lt: [
{
$convert: {
input: "$storedAtTimestamp",
to: "date",
},
},
{
$convert: {
input: "$lastUpdatedTimestamp",
to: "date",
},
},
],
},
},
],
Expand Down

0 comments on commit bb1e7b3

Please sign in to comment.