mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-27 17:11:14 +01:00
fix: upgrade script
This commit is contained in:
@@ -18,6 +18,9 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
delete navItem.properties;
|
delete navItem.properties;
|
||||||
}
|
}
|
||||||
|
if (navItem.hasOwnProperty('groups') && Array.isArray(navItem.groups)) {
|
||||||
|
navItem.groups = JSON.stringify(navItem.groups);
|
||||||
|
}
|
||||||
bulkSet.push([`navigation:enabled:${item.score}`, navItem]);
|
bulkSet.push([`navigation:enabled:${item.score}`, navItem]);
|
||||||
order.push(item.score);
|
order.push(item.score);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user