0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated import to never use {active,instsalled}_apps

no-issue

This is so that new imports will not contain old default, or invalid
values.
This commit is contained in:
Fabien O'Carroll 2019-04-15 16:03:53 +02:00
parent 7461869f13
commit b50cff8753

View file

@ -55,12 +55,12 @@ class SettingsImporter extends BaseImporter {
help: this.modelName,
context: JSON.stringify({activeApps, installedApps})
});
this.dataToImport = _.filter(this.dataToImport, (data) => {
return data.key !== 'active_apps' && data.key !== 'installed_apps';
});
}
this.dataToImport = _.filter(this.dataToImport, (data) => {
return data.key !== 'active_apps' && data.key !== 'installed_apps';
});
const permalinks = _.find(this.dataToImport, {key: 'permalinks'});
if (permalinks) {