timers 启动笔误 少写了s
This commit is contained in:
parent
b0191b0b08
commit
e79e6673ce
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue