Fix: Todo Multi refresh ...

fix some promises problem
This commit is contained in:
Paolo Arena
2019-02-15 01:38:01 +01:00
parent f6fa45a9e9
commit f44d3dc661
3 changed files with 8 additions and 2 deletions

View File

@@ -111,7 +111,9 @@ if ((process.env.NODE_ENV === 'production') || (process.env.NODE_ENV === 'test')
httpServer.listen(port);
}
testmsgwebpush();
if (process.env.PROD !== 1) {
testmsgwebpush();
}
function testmsgwebpush() {
var { User } = require('./models/user');