增加系统初始化任务

This commit is contained in:
whyour committed 2021-04-04 11:57:13 +08:00
1 parent df1dc4fcbb
commit b73431a7ab
7 files changed
+147 -21

No files matched your search

+4
View File
@@ -18,6 +18,10 @@ export default class CronService {
});
}
public getDb(): DataStore {
return this.cronDb;
}
public async create(payload: Crontab): Promise<void> {
const tab = new Crontab(payload);
tab.created = new Date().valueOf();