From d18d77f191de2fb03e7f322de292ee8014ff00d5 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Wed, 15 Feb 2023 12:06:37 +0500 Subject: [PATCH] Fix for removing team from mutable object in cached map (#2637) Signed-off-by: Vyacheslav Tumanov --- server/core/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }