a lot
This commit is contained in:
13
apps/worker/src/jobs/cron.ts
Normal file
13
apps/worker/src/jobs/cron.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { Job } from 'bullmq';
|
||||
|
||||
import type { CronQueuePayload } from '@mixan/queue/src/queues';
|
||||
|
||||
import { salt } from './cron.salt';
|
||||
|
||||
export async function cronJob(job: Job<CronQueuePayload>) {
|
||||
switch (job.data.type) {
|
||||
case 'salt': {
|
||||
return await salt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user