mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 07:10:02 +00:00
Fix for removing team from mutable object in cached map (#2637)
Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
parent
13e667e7a7
commit
d18d77f191
@ -29,6 +29,6 @@ export function createCacheFindAll (storage: ServerStorage): ServerStorage['find
|
|||||||
}
|
}
|
||||||
cacheResult = await storage.findAll(ctx, clazz, query, options)
|
cacheResult = await storage.findAll(ctx, clazz, query, options)
|
||||||
queryCache.set(key, cacheResult)
|
queryCache.set(key, cacheResult)
|
||||||
return cacheResult as FindResult<T>
|
return storage.hierarchy.clone(cacheResult) as FindResult<T>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user