From 9ce77a5be0eafbda8520a91dc1f31f0630e32c45 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Mon, 19 Jun 2023 02:29:04 -0400 Subject: [PATCH] Improved fix for #30 --- Server/utilities/recordHelper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/utilities/recordHelper.js b/Server/utilities/recordHelper.js index 4db335d..c3bc87c 100644 --- a/Server/utilities/recordHelper.js +++ b/Server/utilities/recordHelper.js @@ -119,7 +119,8 @@ class nodeObject { this.port = _port; this.location = _location; if (_nearbySystems && Array.isArray(_nearbySystems)) this.nearbySystems = _nearbySystems; - else this.nearbySystems = Object.keys(_nearbySystems); + else if (_nearbySystems) this.nearbySystems = Object.keys(_nearbySystems); + else this.nearbySystems = _nearbySystems; this.online = _online; } }