diff --git a/packages/core/src/modules/twilio/twilio.service.ts b/packages/core/src/modules/twilio/twilio.service.ts index 1e0392429..cb9588b80 100644 --- a/packages/core/src/modules/twilio/twilio.service.ts +++ b/packages/core/src/modules/twilio/twilio.service.ts @@ -2,7 +2,7 @@ import { Twilio } from 'twilio'; import { db } from '@oyster/db'; -import { GetBullJobData } from '@/infrastructure/bull.types'; +import type { GetBullJobData } from '@/infrastructure/bull.types'; const twilioNumber = 'INSERT HERE'; const accountSid = 'INSERT HERE'; diff --git a/packages/core/src/modules/twilio/twilio.worker.ts b/packages/core/src/modules/twilio/twilio.worker.ts index 580abc523..2e6dbfd6e 100644 --- a/packages/core/src/modules/twilio/twilio.worker.ts +++ b/packages/core/src/modules/twilio/twilio.worker.ts @@ -8,6 +8,7 @@ export const twilioWorker = registerWorker( 'twilio', TwilioMessagingBullJob, async (job) => { + return match(job) .with({ name: 'twilio.messaging' }, ({ data }) => { console.log('yello manny');