0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-08 08:09:14 -05:00

📎 Add get-raw-file srepl helper

This commit is contained in:
Andrey Antukh 2024-02-14 17:37:31 +01:00
parent 29d48f0a98
commit 63e74545ab

View file

@ -85,6 +85,14 @@
{:id id})
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!
"Hardcode replace of the data of one file."
[system id data]