()
| 233 | } |
| 234 | |
| 235 | setupCronJobs() { |
| 236 | cron.schedule('0 6 * * *', () => checkBirthdays(this)); |
| 237 | cron.schedule('* * * * *', () => checkGiveaways(this)); |
| 238 | cron.schedule('*/15 * * * *', () => this.updateAllCounters()); |
| 239 | } |
| 240 | |
| 241 | async updateAllCounters() { |
| 242 | if (!this.db) { |
no test coverage detected