Skip to content

Commit 0c3643d

Browse files
Merge pull request #651 from code4romania/feat/release-candidate
chore: temporarily disable the financial data notifications and banners
2 parents 7234d0b + 0c62032 commit 0c3643d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

backend/src/modules/organization/services/crons.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
import { OrganizationFinancialService } from './organization-financial.service';
88
import { OrganizationReportService } from './organization-report.service';
99
import * as Sentry from '@sentry/node';
10-
import { Cron, CronExpression } from '@nestjs/schedule';
10+
// import { Cron, CronExpression } from '@nestjs/schedule';
1111
import { MailService } from 'src/mail/services/mail.service';
1212
import { MAIL_OPTIONS } from 'src/mail/constants/template.constants';
1313
import { EntityManager, In, Not, getManager } from 'typeorm';
@@ -40,7 +40,7 @@ export class OrganizationCronsService {
4040
seconds (optional)
4141
*/
4242

43-
@Cron('0 5 1 1 *') // 1st of January, 5:00 AM
43+
// @Cron('0 5 1 1 *') // 1st of January, 5:00 AM
4444
async generateFinancialDataAndReportsForPreviousYear() {
4545
const thisYear = new Date().getFullYear();
4646
const lastYear = thisYear - 1;
@@ -103,7 +103,7 @@ export class OrganizationCronsService {
103103
* On 1st Of june, we send an email to all organization which didn't fully complete their reports.
104104
*
105105
*/
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
107107
async sendEmailToRemindOrganizationProfileUpdate() {
108108
// 1. Get all organizations missin the completion of financial data and reports
109109
const organizations: { adminEmail: string }[] =
@@ -147,7 +147,7 @@ export class OrganizationCronsService {
147147
}
148148

149149
// 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')
151151
async sendReminderForOrganizationProfileUpdate() {
152152
// 1. Get all organizations missin the completion of financial data and reports
153153
const organizations: { adminEmail: string }[] =
@@ -193,7 +193,7 @@ export class OrganizationCronsService {
193193
/**
194194
* At 07:00 (Server Time) every Monday in every month from June through December.
195195
*/
196-
@Cron('0 7 * 6-12 1')
196+
// @Cron('0 7 * 6-12 1')
197197
async fetchANAFDataForFinancialReports() {
198198
try {
199199
await this.organizationFinancialService.refetchANAFDataForFinancialReports();

0 commit comments

Comments
 (0)