refactor(notifications): refactored the cron job system so we can utilize outside the service
This commit is contained in:
@@ -105,7 +105,7 @@ export const startNotificationMonitor = async () => {
|
|||||||
}, 5 * 1000);
|
}, 5 * 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
const createJob = async (
|
export const createJob = async (
|
||||||
id: string,
|
id: string,
|
||||||
schedule: string,
|
schedule: string,
|
||||||
task: () => Promise<void>
|
task: () => Promise<void>
|
||||||
|
|||||||
Reference in New Issue
Block a user