Do not handle location and domain field for apps table updates

This commit is contained in:
Johannes Zellner
2018-06-29 13:21:31 +02:00
parent 18887b27e6
commit 5497a7d4d8

View File

@@ -368,7 +368,7 @@ function updateWithConstraints(id, app, constraints, callback) {
if (p === 'manifest' || p === 'oldConfig' || p === 'updateConfig' || p === 'restoreConfig' || p === 'accessRestriction' || p === 'debugMode') {
fields.push(`${p}Json = ?`);
values.push(JSON.stringify(app[p]));
} else if (p !== 'portBindings') {
} else if (p !== 'portBindings' && p !== 'location' && p !== 'domain') {
fields.push(p + ' = ?');
values.push(app[p]);
}