1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

dont get app db name if undefined

This commit is contained in:
Martin McKeaveney 2022-08-10 18:39:41 +01:00
parent aaa7e48f99
commit bf16ffd8a5

View file

@ -233,6 +233,10 @@ export async function getAllApps({ dev, all, idsOnly, efficient }: any = {}) {
} }
let dbs = await getAllDbs({ efficient }) let dbs = await getAllDbs({ efficient })
const appDbNames = dbs.filter((dbName: any) => { const appDbNames = dbs.filter((dbName: any) => {
if (!dbName) {
return false
}
const split = dbName.split(SEPARATOR) const split = dbName.split(SEPARATOR)
// it is an app, check the tenantId // it is an app, check the tenantId
if (split[0] === DocumentTypes.APP) { if (split[0] === DocumentTypes.APP) {