Skip to content

Commit

Permalink
auto confirm optimiziation
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed May 10, 2024
1 parent 33e13fd commit 517b7a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/need/need.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ export class NeedController {
if (
!fetchedNeed ||
fetchedNeed.status !== need.status ||
fetchedNeed.category !== need.category ||
fetchedNeed.type !== need.type ||
fetchedNeed.nameTranslations.en !== need.name_translations.en
) {
const { need: nestNeed } = await this.syncService.syncNeed(
Expand Down Expand Up @@ -448,11 +450,11 @@ export class NeedController {
childId: n.child_id,
status: n.status,
category: n.category,
type: n.type,
isConfirmed: n.confirmDate && true,
};
}),
});
1;
}

config().dataCache.storeToBeConfirmed(myList, new Date());
Expand Down
1 change: 1 addition & 0 deletions src/features/need/need.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ export class NeedService {
'need.id',
'need.title',
'need.status',
'need.type',
'need.child_id',
'need.name_translations',
'need.description_translations',
Expand Down

0 comments on commit 517b7a0

Please sign in to comment.