File tree Expand file tree Collapse file tree 4 files changed +16479
-851
lines changed Expand file tree Collapse file tree 4 files changed +16479
-851
lines changed Original file line number Diff line number Diff 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+
3537mongoose . set ( 'useNewUrlParser' , true ) ;
3638mongoose . set ( 'useFindAndModify' , false ) ;
3739mongoose . set ( 'useCreateIndex' , true ) ;
Original file line number Diff line number Diff line change 11const mailJetApiPrivateKey = process . env . MAILJET_PRIVATE_KEY ;
22const 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;
811const noReplyFromEmail = "noreply@newtube.app" ;
You can’t perform that action at this time.
0 commit comments