From a676b65e5ed9c3bb37be10e406f2bdf9c6af7793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20G=C3=B3mez?= Date: Mon, 13 Jan 2025 15:50:06 +0100 Subject: [PATCH] Change companies prices refresh schedule again (#691) --- src/companies/domain/companies.service.ts | 6 +++--- src/portfolios/domain/portfolios.service.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) 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(); }