update: updateConfig can be missing values, selectively update db
This commit is contained in:
@@ -657,8 +657,6 @@ async function update(app, args, progressCallback) {
|
||||
|
||||
const values = {
|
||||
manifest: updateConfig.manifest,
|
||||
appStoreId: updateConfig.appStoreId,
|
||||
memoryLimit: updateConfig.memoryLimit,
|
||||
portBindings,
|
||||
// all domains have to be updated together
|
||||
subdomain: app.subdomain,
|
||||
@@ -667,6 +665,8 @@ async function update(app, args, progressCallback) {
|
||||
secondaryDomains,
|
||||
redirectDomains: app.redirectDomains
|
||||
};
|
||||
if ('memoryLimit' in updateConfig) values.memoryLimit = updateConfig.memoryLimit;
|
||||
if ('appStoreId' in updateConfig) values.appStoreId = updateConfig.appStoreId;
|
||||
|
||||
await updateApp(app, values); // switch over to the new config
|
||||
|
||||
|
||||
Reference in New Issue
Block a user