I have this Nodejs express code...
app.post('/user', async (req, res) =>
if(AccessManager.checkAccess(req, res, ["user_edit"]))
const session = req.session;
if (session && session.user)
const user = req.body.user;
await dbCon.queryDB(`BEGIN`, null);
`INSERT INTO users (sso, name, language, active, last_update_date, last_update_by)
VALUES ($1, $2, $3, $4, NOW(), $5)
ON CONFLICT (sso) DO UPDATE SET name = $2, language = $3, active = $4, last_update_date = NOW(), last_update_by = $5`,
[user.sso, user.name, user.language, user.active, session.user.sso]);
Intelliji is here giving a warning
"unresolved variable sso" for the user.sso as the first insert value
but not for name, language and active.
Why are these attributes ok, but sso not? I would understand if it would find no attributes because its coming from a JSON object from the POST body, or if it doesn't care about all. But only one is not ok that's what I don't understand.