mirror of
https://github.com/penpot/penpot.git
synced 2026-05-10 18:48:23 +00:00
🔧 Sanitize and check tokens when deserializing from db (#6838)
This commit is contained in:
parent
be43365909
commit
0a71134652
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user