clone: appdb.add must also put the reverse proxy config

This commit is contained in:
Girish Ramakrishnan
2019-11-05 13:58:02 -08:00
parent b9d8b5f973
commit d7b326bf2b
+4 -3
View File
@@ -250,15 +250,16 @@ function add(id, appStoreId, manifest, location, domain, portBindings, data, cal
const label = data.label || null;
const tagsJson = data.tags ? JSON.stringify(data.tags) : null;
const mailboxName = data.mailboxName || null;
const reverseProxyConfigJson = data.reverseProxyConfig ? JSON.stringify(data.reverseProxyConfig) : null;
var queries = [];
queries.push({
query: 'INSERT INTO apps (id, appStoreId, manifestJson, installationState, runState, accessRestrictionJson, memoryLimit, '
+ 'sso, debugModeJson, mailboxName, label, tagsJson) '
+ ' VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)',
+ 'sso, debugModeJson, mailboxName, label, tagsJson, reverseProxyConfigJson) '
+ ' VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)',
args: [ id, appStoreId, manifestJson, installationState, runState, accessRestrictionJson, memoryLimit,
sso, debugModeJson, mailboxName, label, tagsJson ]
sso, debugModeJson, mailboxName, label, tagsJson, reverseProxyConfigJson ]
});
queries.push({