removed the dontenv from email function

This commit is contained in:
veyselboybay committed 2024-06-05 14:46:48 -04:00
1 parent d627f03e8e
commit dc98b07f55
1 file changed
-2
-2
View File
@@ -1,7 +1,5 @@
const sgMail = require('@sendgrid/mail')
const logger = require('./logger')
const dotenv = require('dotenv')
dotenv.config({path:__dirname+'/../.env'})
sgMail.setApiKey(process.env.SENDGRID_API_KEY)
const SERVICE_NAME = 'Email_Service';
/**