Also validate devices in the setter route
This commit is contained in:
+4
-1
@@ -1673,7 +1673,10 @@ async function setDevices(app, devices, auditSource) {
|
||||
assert.strictEqual(typeof auditSource, 'object');
|
||||
|
||||
const appId = app.id;
|
||||
const error = checkAppState(app, exports.ISTATE_PENDING_RECREATE_CONTAINER);
|
||||
let error = checkAppState(app, exports.ISTATE_PENDING_RECREATE_CONTAINER);
|
||||
if (error) throw error;
|
||||
|
||||
error = validateDevices(devices);
|
||||
if (error) throw error;
|
||||
|
||||
const task = {
|
||||
|
||||
Reference in New Issue
Block a user