Skip to content

Commit

Permalink
Merge pull request #458 from mayeaux/update-deps
Browse files Browse the repository at this point in the history
update deps
  • Loading branch information
mayeaux authored Sep 23, 2022
2 parents 2670fa6 + 3578436 commit ca56174
Show file tree
Hide file tree
Showing 4 changed files with 16,479 additions and 851 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ if(process.env.SHOW_LOG_LOCATION == 'true' || 1 == 2){
jsHelpers.showLogLocation();
}

global.l = console.log;

mongoose.set('useNewUrlParser', true);
mongoose.set('useFindAndModify', false);
mongoose.set('useCreateIndex', true);
Expand Down
7 changes: 5 additions & 2 deletions lib/emails/mailjet.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
const mailJetApiPrivateKey = process.env.MAILJET_PRIVATE_KEY;
const mailJetApiPublicKey = process.env.MAILJET_PUBLIC_KEY;

const mailjet = require ('node-mailjet')
.connect(mailJetApiPrivateKey, mailJetApiPublicKey)
let mailjet;
if(mailJetApiPrivateKey && mailJetApiPublicKey){
mailjet = require ('node-mailjet')
.connect(mailJetApiPrivateKey, mailJetApiPublicKey)
}

// const noReplyEmail = process.env.NO_REPLY_EMAIL;
const noReplyFromEmail = "[email protected]";
Expand Down
Loading

0 comments on commit ca56174

Please sign in to comment.