From a4659a0a71959bf22421bcad124f479237d20729 Mon Sep 17 00:00:00 2001 From: G Date: Wed, 21 Feb 2024 14:08:36 +0330 Subject: [PATCH] small changes --- src/features/campaign/campaign.service.ts | 3 ++- src/features/schedule/schedule.module.ts | 2 +- src/features/schedule/schedule.service.ts | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/features/campaign/campaign.service.ts b/src/features/campaign/campaign.service.ts index e2e7fffd8..f6212359a 100644 --- a/src/features/campaign/campaign.service.ts +++ b/src/features/campaign/campaign.service.ts @@ -62,6 +62,7 @@ export class CampaignService { smsRest = this.smsApi.sms(); async childrenWithNoNeed() { + this.logger.log(`Updating children with no needs.`); const children = await this.childrenService.getFlaskActiveChildren(); const list = []; for await (const child of children) { @@ -84,7 +85,7 @@ export class CampaignService { this.logger.log(`Updated children with no need.`); return list; } - + async handleEmailCampaign( campaignEmailCode: string, tittle: string, diff --git a/src/features/schedule/schedule.module.ts b/src/features/schedule/schedule.module.ts index 7423eba82..ffeea5bb3 100644 --- a/src/features/schedule/schedule.module.ts +++ b/src/features/schedule/schedule.module.ts @@ -53,12 +53,12 @@ import { EthereumAccountEntity } from 'src/entities/ethereum.account.entity'; ], controllers: [], providers: [ - ScheduleService, NeedService, FamilyService, AnalyticService, NgoService, UserService, + ScheduleService, ], }) export class ScheduleTaskModule {} diff --git a/src/features/schedule/schedule.service.ts b/src/features/schedule/schedule.service.ts index 87a459e12..9b038b619 100644 --- a/src/features/schedule/schedule.service.ts +++ b/src/features/schedule/schedule.service.ts @@ -6,6 +6,8 @@ import { FamilyService } from '../family/family.service'; import { AnalyticService } from '../analytic/analytic.service'; import { CampaignService } from '../campaign/campaign.service'; import { persianDay } from 'src/utils/helpers'; + +@Injectable() export class ScheduleService { constructor( private campaignService: CampaignService, @@ -14,7 +16,7 @@ export class ScheduleService { ) {} private readonly logger = new Logger(ScheduleService.name); - async completePays() { + async completePays() { const father = await this.familyService.getFamilyRoleCompletePay( VirtualFamilyRole.FATHER, 0,