|
7 | 7 | import { OrganizationFinancialService } from './organization-financial.service'; |
8 | 8 | import { OrganizationReportService } from './organization-report.service'; |
9 | 9 | import * as Sentry from '@sentry/node'; |
10 | | -import { Cron, CronExpression } from '@nestjs/schedule'; |
| 10 | +// import { Cron, CronExpression } from '@nestjs/schedule'; |
11 | 11 | import { MailService } from 'src/mail/services/mail.service'; |
12 | 12 | import { MAIL_OPTIONS } from 'src/mail/constants/template.constants'; |
13 | 13 | import { EntityManager, In, Not, getManager } from 'typeorm'; |
@@ -40,7 +40,7 @@ export class OrganizationCronsService { |
40 | 40 | seconds (optional) |
41 | 41 | */ |
42 | 42 |
|
43 | | - @Cron('0 5 1 1 *') // 1st of January, 5:00 AM |
| 43 | + // @Cron('0 5 1 1 *') // 1st of January, 5:00 AM |
44 | 44 | async generateFinancialDataAndReportsForPreviousYear() { |
45 | 45 | const thisYear = new Date().getFullYear(); |
46 | 46 | const lastYear = thisYear - 1; |
@@ -103,7 +103,7 @@ export class OrganizationCronsService { |
103 | 103 | * On 1st Of june, we send an email to all organization which didn't fully complete their reports. |
104 | 104 | * |
105 | 105 | */ |
106 | | - @Cron('0 12 1 6 *') // 1st of June, 12 PM server time |
| 106 | + // @Cron('0 12 1 6 *') // 1st of June, 12 PM server time |
107 | 107 | async sendEmailToRemindOrganizationProfileUpdate() { |
108 | 108 | // 1. Get all organizations missin the completion of financial data and reports |
109 | 109 | const organizations: { adminEmail: string }[] = |
@@ -147,7 +147,7 @@ export class OrganizationCronsService { |
147 | 147 | } |
148 | 148 |
|
149 | 149 | // Every monday at 8:00 AM (server time) from 8th to 30th of June |
150 | | - @Cron('0 8 8-30 6 1') |
| 150 | + // @Cron('0 8 8-30 6 1') |
151 | 151 | async sendReminderForOrganizationProfileUpdate() { |
152 | 152 | // 1. Get all organizations missin the completion of financial data and reports |
153 | 153 | const organizations: { adminEmail: string }[] = |
@@ -193,7 +193,7 @@ export class OrganizationCronsService { |
193 | 193 | /** |
194 | 194 | * At 07:00 (Server Time) every Monday in every month from June through December. |
195 | 195 | */ |
196 | | - @Cron('0 7 * 6-12 1') |
| 196 | + // @Cron('0 7 * 6-12 1') |
197 | 197 | async fetchANAFDataForFinancialReports() { |
198 | 198 | try { |
199 | 199 | await this.organizationFinancialService.refetchANAFDataForFinancialReports(); |
|
0 commit comments