1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

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

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