Quick fix for application.spec.ts - didn't specify user properly.

This commit is contained in:
mike12345567 2023-07-31 19:04:17 +01:00
parent 7a74ce98f1
commit fc01ac4f71
1 changed files with 4 additions and 1 deletions

View File

@ -36,7 +36,10 @@ export const clearAllApps = async (
exceptions: Array<string> = []
) => {
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) {