diff options
Diffstat (limited to 'src/tasks/updateStats.ts')
-rw-r--r-- | src/tasks/updateStats.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tasks/updateStats.ts b/src/tasks/updateStats.ts index d6cabaa..8813343 100644 --- a/src/tasks/updateStats.ts +++ b/src/tasks/updateStats.ts @@ -8,6 +8,7 @@ export default class UpdateStatsTask extends BushTask { runOnStart: true }); } + public override async exec() { const row = (await Stat.findByPk(client.config.environment)) ?? (await Stat.create({ environment: client.config.environment })); |