mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-30 18:46:01 +01:00 
			
		
		
		
	fix: upgrade script to handle strings as well
This commit is contained in:
		| @@ -18,7 +18,7 @@ module.exports = { | ||||
| 				} | ||||
| 				delete navItem.properties; | ||||
| 			} | ||||
| 			if (navItem.hasOwnProperty('groups') && Array.isArray(navItem.groups)) { | ||||
| 			if (navItem.hasOwnProperty('groups') && (Array.isArray(navItem.groups) || typeof navItem.groups === 'string')) { | ||||
| 				navItem.groups = JSON.stringify(navItem.groups); | ||||
| 			} | ||||
| 			bulkSet.push([`navigation:enabled:${item.score}`, navItem]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user