diff --git a/src/companies/domain/companies.service.ts b/src/companies/domain/companies.service.ts index 67f0d273..2fc67f01 100644 --- a/src/companies/domain/companies.service.ts +++ b/src/companies/domain/companies.service.ts @@ -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(); } diff --git a/src/portfolios/domain/portfolios.service.ts b/src/portfolios/domain/portfolios.service.ts index 63c0fbe0..088ef7df 100644 --- a/src/portfolios/domain/portfolios.service.ts +++ b/src/portfolios/domain/portfolios.service.ts @@ -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(); }