Skip to content

Commit

Permalink
fix date comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
folland87 committed Feb 25, 2025
1 parent 912c32f commit 4314d13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jobs/treatments/set-statuses.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export async function setStructureStatus() {
if: {
$gt: [
{ $dateFromString: { dateString: "$normalizedEndDate" } },
"$$NOW"
{ $add: ["$$NOW", 86400000] }
]
},
then: "active",
Expand Down Expand Up @@ -261,7 +261,7 @@ export async function setIdentifierStatus() {
else: {
$gt: [
{ $dateFromString: { dateString: "$normalizedEndDate" } },
"$$NOW"
{ $add: ["$$NOW", 86400000] }
]
}
}
Expand Down

0 comments on commit 4314d13

Please sign in to comment.