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

Fixed 1.20 migration script

no issue

- `models.Settings.destroy` only accepts one argument
This commit is contained in:
kirrg001 2018-01-09 21:38:13 +01:00
parent 5b77f052d9
commit ccb3b3de38

View file

@ -21,7 +21,7 @@ module.exports.up = function removeSettingKeys(options) {
}
common.logging.info('Deleted Settings Key `display_update_notification`.');
return models.Settings.destroy({id: settingsModel.id}, localOptions);
return models.Settings.destroy(_.merge({id: settingsModel.id}, localOptions));
})
.then(function () {
return models.Settings.findOne({key: 'seen_notifications'}, localOptions);
@ -33,7 +33,7 @@ module.exports.up = function removeSettingKeys(options) {
}
common.logging.info('Deleted Settings Key `seen_notifications`.');
return models.Settings.destroy({id: settingsModel.id}, localOptions);
return models.Settings.destroy(_.merge({id: settingsModel.id}, localOptions));
});
};