mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
Use correct variable (#6325)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
9b65d23fe9
commit
27b04fba7a
@ -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') {
|
||||
|
Loading…
Reference in New Issue
Block a user