timers 启动笔误 少写了s

This commit is contained in:
Wang Kejun 2022-12-19 10:51:11 +08:00
parent b0191b0b08
commit e79e6673ce
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ class AppLoader extends types_1.AppLoader {
startWatchers(this.dbStore, this.path, this.contextBuilder);
}
startTimers() {
const timers = require(`${this.path}/lib/timer/index`).default;
const timers = require(`${this.path}/lib/timers/index`).default;
for (const timer of timers) {
const { cron, fn, name } = timer;
(0, node_schedule_1.scheduleJob)(name, cron, async (date) => {

View File

@ -171,7 +171,7 @@ export class AppLoader<ED extends EntityDict & BaseEntityDict, Cxt extends Async
}
startTimers() {
const timers = require(`${this.path}/lib/timer/index`).default;
const timers = require(`${this.path}/lib/timers/index`).default;
for (const timer of timers) {
const { cron, fn, name } = timer;
scheduleJob(name, cron, async (date) => {