Skip to content

Commit

Permalink
Dates as dates
Browse files Browse the repository at this point in the history
  • Loading branch information
ammsalme committed Oct 20, 2023
1 parent 99f98f6 commit 8be107a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mongoLog.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ export default async function (MONGO_URI, dbName = 'rest-api') {
'logItemType': logItemTypes.length > 0 ? {'$in': logItemTypes} : /.*/ui,
'cataloger': catalogers.length > 0 ? {'$in': catalogers} : /.*/ui,
'creationTime': {
'$gte': dateAfter.toISOString(),
'$lte': dateBefore.toISOString()
'$gte': new Date(dateAfter).toISOString(),
'$lte': new Date(dateBefore).toISOString()
}
}
};
Expand Down

0 comments on commit 8be107a

Please sign in to comment.