mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Checked null & undefined in settings migration (#10609)
no-issue This is to make sure we catch all falsy cases of values.
This commit is contained in:
parent
02c56e90e5
commit
ca16b197a2
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ module.exports.up = (options) => {
|
|||
}
|
||||
|
||||
// @NOTE: null or undefined were obviously intended to be false
|
||||
if (entry.value === 'null' || entry.value === 'undefined') {
|
||||
if (entry.value === null || entry.value === undefined || entry.value === 'null' || entry.value === 'undefined') {
|
||||
const value = 'false';
|
||||
common.logging.info(`Setting ${entry.key} to ${value} because it was ${entry.value}`);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue