Skip to content

Commit ca56174

Browse files
authored
Merge pull request #458 from mayeaux/update-deps
update deps
2 parents 2670fa6 + 3578436 commit ca56174

File tree

4 files changed

+16479
-851
lines changed

4 files changed

+16479
-851
lines changed

app.js

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ if(process.env.SHOW_LOG_LOCATION == 'true' || 1 == 2){
3232
jsHelpers.showLogLocation();
3333
}
3434

35+
global.l = console.log;
36+
3537
mongoose.set('useNewUrlParser', true);
3638
mongoose.set('useFindAndModify', false);
3739
mongoose.set('useCreateIndex', true);

lib/emails/mailjet.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
const mailJetApiPrivateKey = process.env.MAILJET_PRIVATE_KEY;
22
const mailJetApiPublicKey = process.env.MAILJET_PUBLIC_KEY;
33

4-
const mailjet = require ('node-mailjet')
5-
.connect(mailJetApiPrivateKey, mailJetApiPublicKey)
4+
let mailjet;
5+
if(mailJetApiPrivateKey && mailJetApiPublicKey){
6+
mailjet = require ('node-mailjet')
7+
.connect(mailJetApiPrivateKey, mailJetApiPublicKey)
8+
}
69

710
// const noReplyEmail = process.env.NO_REPLY_EMAIL;
811
const noReplyFromEmail = "[email protected]";

0 commit comments

Comments
 (0)