From fc01ac4f71c7fda09f5662171e8b426b2cb900d7 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 31 Jul 2023 19:04:17 +0100 Subject: [PATCH] Quick fix for application.spec.ts - didn't specify user properly. --- .../server/src/api/routes/tests/utilities/TestFunctions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/routes/tests/utilities/TestFunctions.ts b/packages/server/src/api/routes/tests/utilities/TestFunctions.ts index 5a1ed5210e..78afbe8c60 100644 --- a/packages/server/src/api/routes/tests/utilities/TestFunctions.ts +++ b/packages/server/src/api/routes/tests/utilities/TestFunctions.ts @@ -36,7 +36,10 @@ export const clearAllApps = async ( exceptions: Array = [] ) => { await tenancy.doInTenant(tenantId, async () => { - const req: any = { query: { status: AppStatus.DEV }, user: { tenantId } } + const req: any = { + query: { status: AppStatus.DEV }, + user: { tenantId, builder: { global: true } }, + } await appController.fetch(req) const apps = req.body if (!apps || apps.length <= 0) {