From 8dc8a34ee8428e7657414115d1c137592efa174d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 23 Apr 2020 09:32:53 +0200 Subject: Avoir some circular dependencies --- server/lib/job-queue/handlers/email.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/lib/job-queue/handlers/email.ts') diff --git a/server/lib/job-queue/handlers/email.ts b/server/lib/job-queue/handlers/email.ts index 62701222c..3157731e2 100644 --- a/server/lib/job-queue/handlers/email.ts +++ b/server/lib/job-queue/handlers/email.ts @@ -1,8 +1,7 @@ import * as Bull from 'bull' import { logger } from '../../../helpers/logger' -import { Emailer, SendEmailOptions } from '../../emailer' - -export type EmailPayload = SendEmailOptions +import { Emailer } from '../../emailer' +import { EmailPayload } from '@shared/models' async function processEmail (job: Bull.Job) { const payload = job.data as EmailPayload -- cgit v1.2.3