diff --git a/server/core/src/utils.ts b/server/core/src/utils.ts index fe66544be9..967473abb8 100644 --- a/server/core/src/utils.ts +++ b/server/core/src/utils.ts @@ -29,6 +29,6 @@ export function createCacheFindAll (storage: ServerStorage): ServerStorage['find } cacheResult = await storage.findAll(ctx, clazz, query, options) queryCache.set(key, cacheResult) - return cacheResult as FindResult + return storage.hierarchy.clone(cacheResult) as FindResult } }