Skip to content

Commit

Permalink
Change companies prices refresh schedule again (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorgomezv authored Jan 13, 2025
1 parent d1bba12 commit a676b65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/companies/domain/companies.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ export class CompaniesService implements OnApplicationBootstrap {
}
}

@Cron('0 50 9 * * *', { timeZone: 'America/New_York' })
@Cron('0 49 9 * * *', { timeZone: 'America/New_York' })
private refreshAllStatesAtMarketOpen() {
return this.refreshAllStates();
}

@Cron('0 30 12 * * *', { timeZone: 'America/New_York' })
@Cron('0 29 12 * * *', { timeZone: 'America/New_York' })
private refreshAllStatesAtMidday() {
return this.refreshAllStates();
}

@Cron('0 45 15 * * *', { timeZone: 'America/New_York' })
@Cron('0 44 15 * * *', { timeZone: 'America/New_York' })
private refreshAllStatesAtMarketClose() {
return this.refreshAllStates();
}
Expand Down
6 changes: 3 additions & 3 deletions src/portfolios/domain/portfolios.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,16 +387,16 @@ export class PortfoliosService implements OnApplicationBootstrap {
return this.refreshAllStates();
}

@Cron('0 33 9 * * *', { timeZone: 'America/New_York' })
@Cron('0 50 9 * * *', { timeZone: 'America/New_York' })
private refreshAllStatesAtMarketOpen() {
return this.refreshAllStates();
}

@Cron('0 31 12 * * *', { timeZone: 'America/New_York' })
@Cron('0 30 12 * * *', { timeZone: 'America/New_York' })
private refreshAllStatesAtMidday() {
return this.refreshAllStates();
}
@Cron('0 03 16 * * *', { timeZone: 'America/New_York' })
@Cron('0 45 15 * * *', { timeZone: 'America/New_York' })
private refreshAllStatesAtMarketClose() {
return this.refreshAllStates();
}
Expand Down

0 comments on commit a676b65

Please sign in to comment.