Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit cbe387a

Browse files
committed
update env
1 parent bf93f6f commit cbe387a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

dist/services/MailService.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ exports.MailService = void 0;
77
const ejs_1 = __importDefault(require("ejs"));
88
const nodemailer_1 = __importDefault(require("nodemailer"));
99
const path_1 = __importDefault(require("path"));
10+
const dotenv_1 = require("dotenv");
11+
(0, dotenv_1.config)();
1012
class MailService {
1113
constructor() {
1214
this.transporter = nodemailer_1.default.createTransport({

src/services/MailService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import ejs from 'ejs';
22
import nodemailer from 'nodemailer';
33
import path from 'path';
44

5+
import { config } from 'dotenv';
6+
config();
7+
58
export interface IMailService {
69
sendPasswordResetMail(to: string, resetLink: string): Promise<void>;
710
sendAccountConfirmationMail(to: string, confirmationLink: string): Promise<void>;

0 commit comments

Comments
 (0)