From ed01d2463ed95016a47200911f4ea70cfce065af Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 25 Mar 2021 12:53:43 +0000 Subject: [PATCH] Updating system for hosting error that blocked creating apps when server not configured correctly. --- packages/server/src/utilities/builder/hosting.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/server/src/utilities/builder/hosting.js b/packages/server/src/utilities/builder/hosting.js index eeaf220c64..f852cefec1 100644 --- a/packages/server/src/utilities/builder/hosting.js +++ b/packages/server/src/utilities/builder/hosting.js @@ -98,12 +98,14 @@ exports.getDeployedApps = async () => { }, }) const json = await response.json() - for (let value of Object.values(json)) { + const apps = {} + for (let [key, value] of Object.entries(json)) { if (value.url) { value.url = value.url.toLowerCase() + apps[key] = value } } - return json + return apps } catch (err) { // error, cannot determine deployed apps, don't stop app creation - sort this later return {}