From b0c0b6daf9373d748dd072ad5c144f09d26f9023 Mon Sep 17 00:00:00 2001 From: Andrew Brazzatti Date: Wed, 13 Mar 2024 01:27:18 +0000 Subject: [PATCH 1/2] Removing the addition of a day to the modified before date. Requesters are now required to send a complete and accurate ISO8601 string --- typescript/api/services/MongoStorageService.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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}` } }); } From 13c5548ce1ec6f2598f340295a0c477ffadbda95 Mon Sep 17 00:00:00 2001 From: andrewbrazzatti Date: Wed, 13 Mar 2024 11:58:33 +1030 Subject: [PATCH 2/2] Bumped version to 1.4.5 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {