Skip to content

Commit

Permalink
Merge pull request #7 from redbox-mint/hotfix/export-date-string
Browse files Browse the repository at this point in the history
Fix: Export Date String
  • Loading branch information
andrewbrazzatti authored Mar 13, 2024
2 parents e870c63 + 13c5548 commit c8df161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@researchdatabox/sails-hook-redbox-storage-mongo",
"version": "1.4.4",
"version": "1.4.5",
"description": "A MongoDB storage plugin for ReDBox.",
"main": "index.js",
"sails": {
Expand Down
3 changes: 1 addition & 2 deletions typescript/api/services/MongoStorageService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,10 +616,9 @@ export module Services {
});
}
if (!_.isEmpty(modBefore)) {
let modBeforeString = moment(modBefore, 'YYYY-MM-DD').add(1, 'days').format('YYYY-MM-DD')
andArray.push({
lastSaveDate: {
'$lte': `${modBeforeString}`
'$lte': `${modBefore}`
}
});
}
Expand Down

0 comments on commit c8df161

Please sign in to comment.