From 27b04fba7a84291af2f89fd108933f3d4f27e367 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Mon, 12 Aug 2024 23:24:42 +0500 Subject: [PATCH] Use correct variable (#6325) Signed-off-by: Vyacheslav Tumanov --- server/middleware/src/spaceSecurity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/middleware/src/spaceSecurity.ts b/server/middleware/src/spaceSecurity.ts index c5985fd9ea..3930552592 100644 --- a/server/middleware/src/spaceSecurity.ts +++ b/server/middleware/src/spaceSecurity.ts @@ -497,7 +497,7 @@ export class SpaceSecurityMiddleware extends BaseMiddleware implements Middlewar const res = await this.mergeQuery(account, query[field], domain, isSpace) if (res === undefined) { // eslint-disable-next-line @typescript-eslint/no-dynamic-delete - delete (query as any)[field] + delete (newQuery as any)[field] } else { ;(newQuery as any)[field] = res if (typeof res === 'object') {