mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-23 03:22:19 +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)
|
const res = await this.mergeQuery(account, query[field], domain, isSpace)
|
||||||
if (res === undefined) {
|
if (res === undefined) {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
||||||
delete (query as any)[field]
|
delete (newQuery as any)[field]
|
||||||
} else {
|
} else {
|
||||||
;(newQuery as any)[field] = res
|
;(newQuery as any)[field] = res
|
||||||
if (typeof res === 'object') {
|
if (typeof res === 'object') {
|
||||||
|
Loading…
Reference in New Issue
Block a user