mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 04:17:50 +00:00
TSK-1393: Fix status findAll requests extra data (#3105)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
8131ee912f
commit
59d1e2eb37
@ -257,7 +257,7 @@ export class StatusMiddleware extends BasePresentationMiddleware implements Pres
|
|||||||
;(query as any)[attr.name].$nin = targetNin
|
;(query as any)[attr.name].$nin = targetNin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (finalOptions.lookup !== undefined) {
|
if (finalOptions.lookup !== undefined) {
|
||||||
// Remove lookups by status field
|
// Remove lookups by status field
|
||||||
if ((finalOptions.lookup as any)[attr.name] !== undefined) {
|
if ((finalOptions.lookup as any)[attr.name] !== undefined) {
|
||||||
@ -265,7 +265,6 @@ export class StatusMiddleware extends BasePresentationMiddleware implements Pres
|
|||||||
finalOptions.lookup = newLookup
|
finalOptions.lookup = newLookup
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Update sorting if defined.
|
// Update sorting if defined.
|
||||||
this.updateCustomSorting<T>(finalOptions, attr, mgr)
|
this.updateCustomSorting<T>(finalOptions, attr, mgr)
|
||||||
|
Loading…
Reference in New Issue
Block a user