- ++Booking List

- ++Delete a Booking also for the Admin.
This commit is contained in:
Paolo Arena
2019-10-12 23:34:32 +02:00
parent 624f929c56
commit cebe1208de
10 changed files with 290 additions and 17 deletions

View File

@@ -32,8 +32,8 @@ function existSubScribe(userId, access, browser) {
// POST /users
router.post('/', (req, res) => {
tools.mylog("POST /users");
var body = _.pick(req.body, ['email', 'password', 'username', 'name', 'surname', 'idapp', 'keyappid', 'lang']);
var user = new User(body);
const body = _.pick(req.body, ['email', 'password', 'username', 'name', 'surname', 'idapp', 'keyappid', 'lang']);
const user = new User(body);
// tools.mylog("LANG PASSATO = " + user.lang, "IDAPP", user.idapp);