mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Fixed 1.20 migration script
no issue - `models.Settings.destroy` only accepts one argument
This commit is contained in:
parent
5b77f052d9
commit
ccb3b3de38
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ module.exports.up = function removeSettingKeys(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
common.logging.info('Deleted Settings Key `display_update_notification`.');
|
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 () {
|
.then(function () {
|
||||||
return models.Settings.findOne({key: 'seen_notifications'}, localOptions);
|
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`.');
|
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));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue