Thomas Kaul
6 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
2 deletions
-
apps/api/src/services/cron/cron.service.ts
|
|
|
@ -44,14 +44,14 @@ export class CronService { |
|
|
|
@Cron(CronExpression.EVERY_DAY_AT_5PM) |
|
|
|
public async runEveryDayAtFivePm() { |
|
|
|
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { |
|
|
|
this.twitterBotService.tweetFearAndGreedIndex(); |
|
|
|
await this.twitterBotService.tweetFearAndGreedIndex(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT) |
|
|
|
public async runEveryDayAtMidnight() { |
|
|
|
if (this.configurationService.get('ENABLE_FEATURE_SUBSCRIPTION')) { |
|
|
|
this.userService.resetAnalytics(); |
|
|
|
await this.userService.resetAnalytics(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|