mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Ignore unknown setting keys on import
fixes #4059 - Ignore NotFound setting keys
This commit is contained in:
parent
c38c0cdfe1
commit
4cc1f509ac
1 changed files with 4 additions and 1 deletions
|
@ -265,7 +265,10 @@ utils = {
|
|||
});
|
||||
|
||||
ops.push(models.Settings.edit(tableData, _.extend(internal, {transacting: transaction})).catch(function (error) {
|
||||
return Promise.reject({raw: error, model: 'setting', data: tableData});
|
||||
// Ignore NotFound errors
|
||||
if (!(error instanceof errors.NotFoundError)) {
|
||||
return Promise.reject({raw: error, model: 'setting', data: tableData});
|
||||
}
|
||||
}));
|
||||
|
||||
return Promise.settle(ops);
|
||||
|
|
Loading…
Reference in a new issue