update: updateConfig can be missing values, selectively update db

This commit is contained in:
Girish Ramakrishnan
2024-07-17 08:58:43 +02:00
parent aeddaa4566
commit 01deb4d285
2 changed files with 5 additions and 8 deletions

View File

@@ -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