Quick fix for application.spec.ts - didn't specify user properly.
This commit is contained in:
parent
7a74ce98f1
commit
fc01ac4f71
|
@ -36,7 +36,10 @@ export const clearAllApps = async (
|
||||||
exceptions: Array<string> = []
|
exceptions: Array<string> = []
|
||||||
) => {
|
) => {
|
||||||
await tenancy.doInTenant(tenantId, async () => {
|
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)
|
await appController.fetch(req)
|
||||||
const apps = req.body
|
const apps = req.body
|
||||||
if (!apps || apps.length <= 0) {
|
if (!apps || apps.length <= 0) {
|
||||||
|
|
Loading…
Reference in New Issue