Use correct variable (#6325)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2024-08-12 23:24:42 +05:00 committed by GitHub
parent 9b65d23fe9
commit 27b04fba7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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