Add to the Circuit
Remove to the Circuit Revoke request Users Admins
This commit is contained in:
@@ -716,7 +716,7 @@ router.post('/circuits/cmd', authenticate, (req, res) => {
|
||||
const idapp = req.body.idapp;
|
||||
const locale = req.body.locale;
|
||||
const usernameOrig = req.body.usernameOrig;
|
||||
const name = req.body.name;
|
||||
const circuitname = req.body.circuitname;
|
||||
const cmd = req.body.cmd;
|
||||
const value = req.body.value;
|
||||
|
||||
@@ -728,12 +728,12 @@ router.post('/circuits/cmd', authenticate, (req, res) => {
|
||||
}
|
||||
}*/
|
||||
|
||||
return User.setCircuitCmd(idapp, usernameOrig, name, cmd, value, usernameLogged).
|
||||
return User.setCircuitCmd(idapp, usernameOrig, circuitname, cmd, value, usernameLogged).
|
||||
then((ris) => {
|
||||
res.send(ris);
|
||||
}).
|
||||
catch((e) => {
|
||||
tools.mylog('ERRORE IN groups/cmd: ' + e.message);
|
||||
tools.mylog('ERRORE IN circuits/cmd: ' + e.message);
|
||||
res.status(400).send();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user