clone: read custom icon from downloaded backup

the backups table does not have icon to save space. only the
archives table has it for the moment.
This commit is contained in:
Girish Ramakrishnan
2024-12-10 22:43:06 +01:00
parent 05d6484d27
commit 65f507bc75
2 changed files with 5 additions and 4 deletions

View File

@@ -2437,9 +2437,7 @@ async function clone(app, data, user, auditSource) {
const newAppId = uuid.v4();
const icons = await getIcons(app.id);
// label, icon, checklist intentionally omitted
// label, checklist intentionally omitted . icon is loaded in apptask from the backup
const dolly = _.pick(backupInfo.appConfig || app, 'memoryLimit', 'cpuQuota', 'crontab', 'reverseProxyConfig', 'env', 'servicesConfig', 'tags', 'devices',
'enableMailbox', 'mailboxDisplayName', 'mailboxName', 'mailboxDomain', 'enableInbox', 'inboxName', 'inboxDomain', 'debugMode',
'enableTurn', 'enableRedis', 'mounts', 'enableBackup', 'enableAutomaticUpdate', 'accessRestriction', 'operators', 'sso',
@@ -2456,7 +2454,6 @@ async function clone(app, data, user, auditSource) {
redirectDomains: [],
aliasDomains: [],
label: dolly.label ? `${dolly.label}-clone` : '',
icon: icons.icon,
});
const [addError] = await safe(add(newAppId, appStoreId, manifest, subdomain, domain, portBindings, obj));