diff --git a/packages/backend-core/src/db/utils.ts b/packages/backend-core/src/db/utils.ts index 61e0592271..d43ea1ae39 100644 --- a/packages/backend-core/src/db/utils.ts +++ b/packages/backend-core/src/db/utils.ts @@ -233,10 +233,8 @@ export async function getAllApps({ dev, all, idsOnly, efficient }: any = {}) { } let dbs = await getAllDbs({ efficient }) const appDbNames = dbs.filter((dbName: any) => { - if (env.isTest()) { - if (!dbName) { - return false - } + if (env.isTest() && !dbName) { + return false } const split = dbName.split(SEPARATOR)