catch when no couchDB url passed

This commit is contained in:
Martin McKeaveney 2021-08-18 11:55:19 +01:00
parent af4c1b23de
commit 2a766a3011
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ exports.getDeployedAppID = appId => {
}
exports.getCouchUrl = () => {
if (!env.COUCH_DB_URL) return
// username and password already exist in URL
if (env.COUCH_DB_URL.includes("@")) {
return env.COUCH_DB_URL