Merge branch 'dev' of codeup.aliyun.com:61c14a7efa282c88e103c23f/oak-backend-base into dev

This commit is contained in:
Xu Chang 2023-01-11 17:27:56 +08:00
commit ba085f2543
2 changed files with 2 additions and 2 deletions

View File

@ -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) => {

View File

@ -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) => {