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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user