parent
8cd48245a4
commit
e9601b16be
|
@ -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<R>(data: any): Promise<R> {
|
||||
public async sendgridRequest<R = ClientResponse>(data: ClientRequest): Promise<R> {
|
||||
this.log.debug("sendgridRequest:request", data);
|
||||
const results = await client.request(data);
|
||||
this.log.debug("sendgridRequest:results", results);
|
||||
|
|
Loading…
Reference in New Issue