mirror of
https://github.com/penpot/penpot.git
synced 2026-05-25 18:03:43 +00:00
📎 Add get-raw-file srepl helper
This commit is contained in:
parent
29d48f0a98
commit
63e74545ab
@ -85,6 +85,14 @@
|
|||||||
{:id id})
|
{:id id})
|
||||||
team))
|
team))
|
||||||
|
|
||||||
|
(defn get-raw-file
|
||||||
|
"Get the migrated data of one file."
|
||||||
|
([id] (get-raw-file (or *system* main/system) id))
|
||||||
|
([system id]
|
||||||
|
(db/run! system
|
||||||
|
(fn [system]
|
||||||
|
(files/get-file system id :migrate? false)))))
|
||||||
|
|
||||||
(defn reset-file-data!
|
(defn reset-file-data!
|
||||||
"Hardcode replace of the data of one file."
|
"Hardcode replace of the data of one file."
|
||||||
[system id data]
|
[system id data]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user