* feat: add nestjs replacement, remove nestjs * fix: format issues * fix: dependency issues * fix: dependency issues * fix: format issue * fix: wrong channel used for logging channel
9 lines
326 B
TypeScript
9 lines
326 B
TypeScript
import { EVERY_MINUTE } from "../lib/cron-job/constants";
|
|
import { createCronJob } from "../lib/cron-job/creator";
|
|
import { queueWorker } from "../lib/queue/worker";
|
|
|
|
// This job processes queues, it runs every minute.
|
|
export const queuesJob = createCronJob(EVERY_MINUTE).withCallback(async () => {
|
|
await queueWorker();
|
|
});
|