mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 00:15:11 +03:00
Ignore unknown setting keys on import
fixes #4059 - Ignore NotFound setting keys
This commit is contained in:
parent
c38c0cdfe1
commit
4cc1f509ac
@ -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 New Issue
Block a user