feat(email): send trial ending soon mails
This commit is contained in:
13
apps/worker/src/jobs/misc.ts
Normal file
13
apps/worker/src/jobs/misc.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user