Files
stats/apps/worker/src/jobs/misc.ts
2025-03-30 20:58:17 +02:00

14 lines
362 B
TypeScript

import type { Job } from 'bullmq';
import type { MiscQueuePayloadTrialEndingSoon } from '@openpanel/queue';
import { trialEndingSoonJob } from './misc.trail-ending-soon';
export async function miscJob(job: Job<MiscQueuePayloadTrialEndingSoon>) {
switch (job.data.type) {
case 'trialEndingSoon': {
return await trialEndingSoonJob(job);
}
}
}