0
Fork 0
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:
Fabien O'Carroll 2020-06-30 18:38:53 +02:00
parent 0074324b10
commit 44c03eb0f4

View file

@ -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;