mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed migration exiting for single missing setting
refs #10318 `return` would break the whole loop, `continue` will continue to the next iteration
This commit is contained in:
parent
0074324b10
commit
44c03eb0f4
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ module.exports = {
|
|||
|
||||
if (!oldSetting) {
|
||||
logging.warn(`Could not find setting ${renameMapping.from}, not updating ${renameMapping.to} value`);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
const updatedValue = renameMapping.getToValue ? renameMapping.getToValue(oldSetting.value) : oldSetting.value;
|
||||
|
@ -69,7 +69,7 @@ module.exports = {
|
|||
|
||||
if (!newSetting) {
|
||||
logging.warn(`Could not find setting ${renameMapping.to}, not updating ${renameMapping.from} value`);
|
||||
return;
|
||||
continue;
|
||||
}
|
||||
|
||||
const updatedValue = renameMapping.getFromValue ? renameMapping.getFromValue(newSetting.value) : newSetting.value;
|
||||
|
|
Loading…
Add table
Reference in a new issue