From 0a711346521717f44b71659efe4dc96181a43434 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Wed, 2 Jul 2025 17:01:10 +0200 Subject: [PATCH] :wrench: Sanitize and check tokens when deserializing from db (#6838) --- common/src/app/common/types/tokens_lib.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 4b365190d9..35f8261693 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -1769,7 +1769,7 @@ Will return a value that matches this schema: (fres/write-object! w (into {} o))) :rfn (fn [r] (let [obj (fres/read-object! r)] - (map->Token obj)))} + (make-token obj)))} {:name "penpot/token-set/v1" :class TokenSet @@ -1787,7 +1787,7 @@ Will return a value that matches this schema: (fres/write-object! w (into {} o))) :rfn (fn [r] (let [obj (fres/read-object! r)] - (map->TokenTheme obj)))} + (make-token-theme obj)))} ;; LEGACY TOKENS LIB READERS (with migrations) {:name "penpot/tokens-lib/v1"