diff --git a/packages/inbound-email-handler/src/newsletter.ts b/packages/inbound-email-handler/src/newsletter.ts index 322f3bf57..ccbb4ba2b 100644 --- a/packages/inbound-email-handler/src/newsletter.ts +++ b/packages/inbound-email-handler/src/newsletter.ts @@ -45,7 +45,7 @@ export class NewsletterHandler { rawUrl: string, title: string, from: string - ): Promise<[string] | undefined> { + ): Promise { console.log('handleNewsletter', email, rawUrl, title, from) if (!email || !html || !title || !from) { @@ -101,7 +101,7 @@ export const handleConfirmation = async (email: string, subject: string) => { const publishMessage = async ( topic: string, message: Record -): Promise<[string] | undefined> => { +): Promise => { return pubsub .topic(topic) .publishMessage({ json: message })