开启定时任务

This commit is contained in:
zhl 2019-05-09 20:25:20 +08:00
parent 7e3e83f25b
commit 88d4ad520e

View File

@ -28,8 +28,8 @@ db.once('open', async function () {
// movie.run();
// bookChapter.run();
// await dandanzan.run();
await commonTask.run();
// websiteSchedule.scheduleUpdateAll();
// await commonTask.run();
websiteSchedule.scheduleUpdateAll();
});
mongoose.connect(config.db, {promiseLibrary: Promise, useNewUrlParser: true});