|
|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|