aboutsummaryrefslogtreecommitdiff
path: root/src/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'src/tasks')
-rw-r--r--src/tasks/cache/updateNeuItemCache.ts12
-rw-r--r--src/tasks/feature/memberCount.ts2
-rw-r--r--src/tasks/feature/removeExpiredPunishements.ts2
3 files changed, 14 insertions, 2 deletions
diff --git a/src/tasks/cache/updateNeuItemCache.ts b/src/tasks/cache/updateNeuItemCache.ts
new file mode 100644
index 0000000..14c107b
--- /dev/null
+++ b/src/tasks/cache/updateNeuItemCache.ts
@@ -0,0 +1,12 @@
+import { BushTask, Time } from '#lib';
+
+export default class UpdateNeuItemCache extends BushTask {
+ public constructor() {
+ super('updateNeuItemCache', {
+ delay: 1 * Time.Hour,
+ runOnStart: true
+ });
+ }
+
+ public async exec() {}
+}
diff --git a/src/tasks/feature/memberCount.ts b/src/tasks/feature/memberCount.ts
index ea422fa..9c31c5b 100644
--- a/src/tasks/feature/memberCount.ts
+++ b/src/tasks/feature/memberCount.ts
@@ -1,5 +1,5 @@
import { BushTask, MemberCount, Time } from '#lib';
-import assert from 'assert';
+import assert from 'assert/strict';
export default class MemberCountTask extends BushTask {
public constructor() {
diff --git a/src/tasks/feature/removeExpiredPunishements.ts b/src/tasks/feature/removeExpiredPunishements.ts
index 0b20a27..c21454b 100644
--- a/src/tasks/feature/removeExpiredPunishements.ts
+++ b/src/tasks/feature/removeExpiredPunishements.ts
@@ -1,5 +1,5 @@
import { ActivePunishment, ActivePunishmentType, BushTask, Time } from '#lib';
-import assert from 'assert';
+import assert from 'assert/strict';
const { Op } = (await import('sequelize')).default;
export default class RemoveExpiredPunishmentsTask extends BushTask {