- fix: La partecipazione agli eventi, non viene salvata correttamente e non visualizzava.
This commit is contained in:
@@ -1409,7 +1409,13 @@ router.get('/loadsite/:userId/:idapp/:vers', authenticate_noerror,
|
||||
|
||||
function load(req, res, version) {
|
||||
|
||||
const userId = req.params.userId;
|
||||
let userId = '0';
|
||||
try {
|
||||
userId = req.user ? req.user._id.toString() : req.params.userId;
|
||||
} catch (e) {
|
||||
console.error('Err userId LOAD', e);
|
||||
userId = '0';
|
||||
}
|
||||
const idapp = req.params.idapp;
|
||||
|
||||
let status = 200
|
||||
|
||||
Reference in New Issue
Block a user