Fix: Todo Multi refresh ...
fix some promises problem
This commit is contained in:
@@ -57,7 +57,7 @@ module.exports = {
|
||||
.then(console.log)
|
||||
.catch(console.error);
|
||||
},
|
||||
sendEmail_Normale: function (username, to, subject, html) {
|
||||
sendEmail_Normale: function (to, subject, html) {
|
||||
|
||||
// setup e-mail data with unicode symbols
|
||||
var mailOptions = {
|
||||
@@ -118,6 +118,9 @@ module.exports = {
|
||||
};
|
||||
|
||||
this.sendEmail_base('registration/' + lang, user, emailto, mylocalsconf);
|
||||
|
||||
// Send to the Admin an Email
|
||||
this.sendEmail_Normale(process.env.EMAIL_FROM, 'Nuova Registrazione: (' + user + ")", 'Effettuata una Nuova Registrazione!<br>Username:' + user + '<br></br>Email: ' + emailto +'<br>')
|
||||
},
|
||||
sendEmail_RequestNewPassword: function (lang, emailto, idapp, tokenforgot) {
|
||||
|
||||
|
||||
@@ -111,7 +111,9 @@ if ((process.env.NODE_ENV === 'production') || (process.env.NODE_ENV === 'test')
|
||||
httpServer.listen(port);
|
||||
}
|
||||
|
||||
if (process.env.PROD !== 1) {
|
||||
testmsgwebpush();
|
||||
}
|
||||
|
||||
function testmsgwebpush() {
|
||||
var { User } = require('./models/user');
|
||||
|
||||
@@ -176,3 +176,4 @@ module.exports = {
|
||||
// Test
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user