From 7814a7a8263336880f8dc412147f1656cedddfdc Mon Sep 17 00:00:00 2001 From: G Date: Sat, 18 May 2024 11:35:08 +0330 Subject: [PATCH] provider sync --- src/features/need/need.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/need/need.controller.ts b/src/features/need/need.controller.ts index 76c99a637..41ec490e5 100644 --- a/src/features/need/need.controller.ts +++ b/src/features/need/need.controller.ts @@ -289,9 +289,9 @@ export class NeedController { let toBeConfirmed = config().dataCache.fetchToBeConfirmed(); - const expired = !toBeConfirmed.createdAt; - // || - // timeDifference(toBeConfirmed.createdAt, new Date()).mm >= 800; + const expired = + !toBeConfirmed.createdAt || + timeDifference(toBeConfirmed.createdAt, new Date()).mm >= 800; if (!toBeConfirmed || !toBeConfirmed.list[0] || expired) { const notConfirmed = await this.needService.getNotConfirmedNeeds( null,