Merge branch 'dev' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-backend-base into dev
This commit is contained in:
commit
ba085f2543
|
|
@ -139,7 +139,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) => {
|
||||
|
|
|
|||
|
|
@ -174,7 +174,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