Skip to content

Commit

Permalink
fix(structures): Current name can to be in the future /2
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Dec 16, 2024
1 parent 05ef556 commit 1094945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/commons/queries/current-name.query.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default [
as: 'name',
cond: {
$and: [
{ $lte: ['$$name.startDate', '$NOW'] },
{ $gte: ['$$name.endDate', '$NOW'] },
{ $lte: ['$$name.startDate', new Date().toISOString().split('T')[0]] },
{ $gte: ['$$name.endDate', new Date().toISOString().split('T')[0]] },
],
},
},
Expand Down

0 comments on commit 1094945

Please sign in to comment.