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:
parent
29d48f0a98
commit
63e74545ab
1 changed files with 8 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue