Doppia modalità di Registrazione con lista extra utenti

This commit is contained in:
Paolo Arena
2020-01-13 23:52:51 +01:00
parent 8f784df4fa
commit e23a3a792e
25 changed files with 829 additions and 163 deletions

View File

@@ -20,7 +20,7 @@ const { ObjectID } = require('mongodb');
router.post('/', authenticate, (req, res) => {
var body = _.pick(req.body, tools.allfieldProjectWithId());
tools.mylogshow('PROJ INPUT', body);
// tools.mylogshow('PROJ INPUT', body);
var project = new Project(body);
// project.expiring_at = new Date(project.expiring_at);
@@ -45,7 +45,7 @@ router.post('/', authenticate, (req, res) => {
let idobj = writeresult._id;
Project.findById(idobj)
.then(record => {
tools.mylog('REC SAVED :', record.descr);
// tools.mylog('REC SAVED :', record.descr);
tools.sendNotificationToUser(project.userId, 'Project: ' + record.descr, record.descr, '/project/' + project.category, 'project')
.then(ris => {