Skip to content

Commit

Permalink
provider sync
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed May 18, 2024
1 parent 920b0f5 commit 7814a7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/features/need/need.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7814a7a

Please sign in to comment.