Also validate devices in the setter route

This commit is contained in:
Johannes Zellner
2024-12-05 15:16:06 +01:00
parent 25fb467c02
commit fbed850acc
+4 -1
View File
@@ -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 = {