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) {