From e9601b16bec2f62adff6709af0ae917881398214 Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Wed, 16 Nov 2022 13:38:30 -0300 Subject: [PATCH] Revert "Removing types" This reverts commit 1ec5ed8de2f3139bbe84f867f229bc5759256806. --- packages/lib/Sendgrid.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/lib/Sendgrid.ts b/packages/lib/Sendgrid.ts index b9e37d4a1e..bf9fe90809 100644 --- a/packages/lib/Sendgrid.ts +++ b/packages/lib/Sendgrid.ts @@ -1,4 +1,6 @@ import client from "@sendgrid/client"; +import { ClientRequest } from "@sendgrid/client/src/request"; +import { ClientResponse } from "@sendgrid/client/src/response"; import logger from "@calcom/lib/logger"; @@ -63,7 +65,7 @@ export default class Sendgrid { return username; }; - public async sendgridRequest(data: any): Promise { + public async sendgridRequest(data: ClientRequest): Promise { this.log.debug("sendgridRequest:request", data); const results = await client.request(data); this.log.debug("sendgridRequest:results", results);