mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 15:26:12 +02:00
🔥 Remove repeated code.
This commit is contained in:
parent
c4c0daddd3
commit
245b5e3b79
1 changed files with 1 additions and 6 deletions
|
@ -92,12 +92,7 @@
|
|||
[conn {:keys [user file-id] :as params}]
|
||||
(let [id (uuid/next)
|
||||
name "Page 1"
|
||||
data (blob/encode
|
||||
{:version 1
|
||||
:shapes []
|
||||
:canvas []
|
||||
:options {}
|
||||
:shapes-by-id {}})
|
||||
data (blob/encode cp/default-page-data)
|
||||
sql "insert into project_pages (id, user_id, file_id, name, version,
|
||||
ordering, data)
|
||||
values ($1, $2, $3, $4, 0, 1, $5) returning id"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue