diff --git a/src/features/campaign/campaign.service.ts b/src/features/campaign/campaign.service.ts index 55960b31c..b30320770 100644 --- a/src/features/campaign/campaign.service.ts +++ b/src/features/campaign/campaign.service.ts @@ -341,7 +341,7 @@ export class CampaignService { await this.smsRest.send( process.env.SAY_ADMIN_SMS, from, - 'just sent the arrival updates!', + 'سلام، یادآوری به مددکاران انجام شد.', ); sleep(2000); } diff --git a/src/features/schedule/schedule.service.ts b/src/features/schedule/schedule.service.ts index 2e4da1bd3..beefbb6c0 100644 --- a/src/features/schedule/schedule.service.ts +++ b/src/features/schedule/schedule.service.ts @@ -128,8 +128,8 @@ export class ScheduleService { } // ERROR [Scheduler] ServerError: Can't send mail - all recipients were rejected: 550 No such user here - @Cron('00 10 * * Wed', { - name: 'MonthlyCampaigns try At 10:00 on Wednsday.', // we try every week and only send to those who did not receive (because their child have no needs, etc.) + @Cron('00 10 * * Thu', { + name: 'MonthlyCampaigns try At 10:00 on Thursdays.', // we try every week and only send to those who did not receive (because their child have no needs, etc.) timeZone: 'Asia/Tehran', }) async handleMonthlyCampaignsCron() { @@ -145,7 +145,7 @@ export class ScheduleService { this.logger.debug( 'Sending user Campaigns at 01:00 PM, only on Thursdays', ); - await this.campaignService.sendUserMonthlyCampaigns(); + // await this.campaignService.sendUserMonthlyCampaigns(); } } diff --git a/src/utils/needConfirm.ts b/src/utils/needConfirm.ts index 278e38dff..e9211791b 100644 --- a/src/utils/needConfirm.ts +++ b/src/utils/needConfirm.ts @@ -407,20 +407,25 @@ export function checkNeed(need: Need, duplicate: Need) { ), ); if ( - !duplicate.title || duplicate.title.length < 1|| + !duplicate.title || + duplicate.title.length < 1 || (duplicate.title && titleResult > SIMILAR_TXT_PERCENTAGE) ) { TT = true; } else { TT = false; - msg = 'title is not correct'; + msg = 'title is not That similar'; } } else if (type === NeedTypeEnum.SERVICE) { - if (!duplicate.title || duplicate.title.length < 1) { + if ( + !duplicate.name_translations || + !duplicate.name_translations.fa || + duplicate.name_translations.fa.length < 1 + ) { TT = true; } else { TT = false; - msg = 'title is not correct'; + msg = 'title is not That similar'; } }