mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 20:39:03 +00:00
Fix class not found error in blob middleware (#5939)
Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
parent
2fb4763f3f
commit
bb87db700c
@ -98,7 +98,7 @@ export class BlobLookupMiddleware extends BaseMiddleware implements Middleware {
|
||||
for (const d of result) {
|
||||
if (d.$lookup !== undefined) {
|
||||
for (const [k, v] of Object.entries(d.$lookup)) {
|
||||
if (!Array.isArray(v) && v._class === core.class.Blob) {
|
||||
if (v !== undefined && !Array.isArray(v) && v._class === core.class.Blob) {
|
||||
toUpdate.push([d, v, k])
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user