4.6.7 first pr (#726)
This commit is contained in:
6
packages/service/common/system/cron.ts
Normal file
6
packages/service/common/system/cron.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import nodeCron from 'node-cron';
|
||||
|
||||
export const setCron = (time: string, cb: () => void) => {
|
||||
// second minute hour day month week
|
||||
return nodeCron.schedule(time, cb);
|
||||
};
|
||||
Reference in New Issue
Block a user