removed the dontenv from email function
This commit is contained in:
1 parent
d627f03e8e
commit
dc98b07f55
1 file changed
-2
@@ -1,7 +1,5 @@
|
|||||||
const sgMail = require('@sendgrid/mail')
|
const sgMail = require('@sendgrid/mail')
|
||||||
const logger = require('./logger')
|
const logger = require('./logger')
|
||||||
const dotenv = require('dotenv')
|
|
||||||
dotenv.config({path:__dirname+'/../.env'})
|
|
||||||
sgMail.setApiKey(process.env.SENDGRID_API_KEY)
|
sgMail.setApiKey(process.env.SENDGRID_API_KEY)
|
||||||
const SERVICE_NAME = 'Email_Service';
|
const SERVICE_NAME = 'Email_Service';
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user