A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
fix(server): :zap: don't initialize sendgrid if the apikey is empty
Amruth Pillai05d3f1f06fbf
diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 84f7c96c5..229fac6d0 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -24,6 +24,7 @@"scss.validate": false,"conventionalCommits.scopes": ["client",+ "server","docker"]}\ No newline at end of filediff --git a/server/src/mail/mail.service.ts b/server/src/mail/mail.service.tsindex 6f0b6bfef..c09e0b960 100644--- a/server/src/mail/mail.service.ts+++ b/server/src/mail/mail.service.ts@@ -7,7 +7,11 @@ import { User } from '@/users/entities/user.entity';@Injectable()export class MailService {constructor(private configService: ConfigService) {- SendGrid.setApiKey(this.configService.get<string>('sendgrid.apiKey'));+ const sendGridApiKey = this.configService.get<string>('sendgrid.apiKey');++ if (sendGridApiKey) {+ SendGrid.setApiKey(this.configService.get<string>('sendgrid.apiKey'));+ }}async sendEmail(mail: SendGrid.MailDataRequired) {