Skip to content

Commit

Permalink
Merge pull request #36 from vishnuvinay89/all-saas-0.2-dev
Browse files Browse the repository at this point in the history
Task #234670 task : Days fetch from env
  • Loading branch information
gouravmore authored Mar 5, 2025
2 parents ccbe446 + 083bac1 commit a483347
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cohort/cron/cron.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class CronService {
async getOldActiveCohorts() {
try {
const dateThreshold = new Date();
dateThreshold.setDate(dateThreshold.getDate() - 30);
dateThreshold.setDate(dateThreshold.getDate() - parseInt(process.env.COHORT_EXPIRY_DAYS));
console.log(dateThreshold)

const cohorts = await this.cohortRepository.find({
Expand Down

0 comments on commit a483347

Please sign in to comment.