From 968d461692392750c8cf02bbc2cc3822318b9f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 13 Dec 2021 19:18:51 -0500 Subject: [PATCH] fix: upgrade script --- src/upgrades/1.19.0/navigation-enabled-hashes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/upgrades/1.19.0/navigation-enabled-hashes.js b/src/upgrades/1.19.0/navigation-enabled-hashes.js index e92c1e9cde..c45f7d078a 100644 --- a/src/upgrades/1.19.0/navigation-enabled-hashes.js +++ b/src/upgrades/1.19.0/navigation-enabled-hashes.js @@ -18,6 +18,9 @@ module.exports = { } delete navItem.properties; } + if (navItem.hasOwnProperty('groups') && Array.isArray(navItem.groups)) { + navItem.groups = JSON.stringify(navItem.groups); + } bulkSet.push([`navigation:enabled:${item.score}`, navItem]); order.push(item.score); });