Updating system for hosting error that blocked creating apps when server not configured correctly.
This commit is contained in:
parent
1de09689b5
commit
3bef238d55
|
@ -98,12 +98,14 @@ exports.getDeployedApps = async () => {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
const json = await response.json()
|
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) {
|
if (value.url) {
|
||||||
value.url = value.url.toLowerCase()
|
value.url = value.url.toLowerCase()
|
||||||
|
apps[key] = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return json
|
return apps
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
// error, cannot determine deployed apps, don't stop app creation - sort this later
|
// error, cannot determine deployed apps, don't stop app creation - sort this later
|
||||||
return {}
|
return {}
|
||||||
|
|
Loading…
Reference in New Issue