Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Feb 21, 2024
1 parent 8bcdb9b commit a4659a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/features/campaign/campaign.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -84,7 +85,7 @@ export class CampaignService {
this.logger.log(`Updated children with no need.`);
return list;
}

async handleEmailCampaign(
campaignEmailCode: string,
tittle: string,
Expand Down
2 changes: 1 addition & 1 deletion src/features/schedule/schedule.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ import { EthereumAccountEntity } from 'src/entities/ethereum.account.entity';
],
controllers: [],
providers: [
ScheduleService,
NeedService,
FamilyService,
AnalyticService,
NgoService,
UserService,
ScheduleService,
],
})
export class ScheduleTaskModule {}
4 changes: 3 additions & 1 deletion src/features/schedule/schedule.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit a4659a0

Please sign in to comment.