diff --git a/package.json b/package.json index 006905c..01ad0a3 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/typescript/api/services/MongoStorageService.ts b/typescript/api/services/MongoStorageService.ts index e29a1a8..25ddd53 100644 --- a/typescript/api/services/MongoStorageService.ts +++ b/typescript/api/services/MongoStorageService.ts @@ -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}` } }); }