mirror of
https://github.com/whyour/qinglong.git
synced 2026-06-30 20:35:09 +08:00
增加系统初始化任务
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user