Feature: Added Send Grid Intrgration #7

Merged
igorpropisnov merged 3 commits from feature/sendgrid-mail-module into main 2024-05-28 22:23:50 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 2efba5aec9 - Show all commits

View File

@ -1,11 +1,11 @@
import { Inject, Injectable } from '@nestjs/common'; import { Inject, Injectable } from '@nestjs/common';
import * as sendGrindMailApi from '@sendgrid/mail'; import * as SendGridMailApi from '@sendgrid/mail';
@Injectable() @Injectable()
export class MailService { export class MailService {
public constructor( public constructor(
@Inject('SEND_GRID_API_KEY') private readonly apiKey: string @Inject('SEND_GRID_API_KEY') private readonly apiKey: string
) { ) {
sendGrindMailApi.setApiKey(this.apiKey); SendGridMailApi.setApiKey(this.apiKey);
} }
} }