From b8bfd441b9ca0c6add01b950f1f6ffc0d35c2175 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Mon, 3 Jul 2023 17:17:22 +0200 Subject: [PATCH] fix/import issue sendgrid (#1200) > sgMail.setApiKey is not a function --- src/services/EmailService/EmailService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/EmailService/EmailService.ts b/src/services/EmailService/EmailService.ts index d29160119..13dd41fbb 100644 --- a/src/services/EmailService/EmailService.ts +++ b/src/services/EmailService/EmailService.ts @@ -1,4 +1,5 @@ -import * as sgMail from '@sendgrid/mail'; +import sgMail = require('@sendgrid/mail'); + import { CONVERT_LINK_TEMPLATE, CONVERT_TEMPLATE,