mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 18:06: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}]
|
[conn {:keys [user file-id] :as params}]
|
||||||
(let [id (uuid/next)
|
(let [id (uuid/next)
|
||||||
name "Page 1"
|
name "Page 1"
|
||||||
data (blob/encode
|
data (blob/encode cp/default-page-data)
|
||||||
{:version 1
|
|
||||||
:shapes []
|
|
||||||
:canvas []
|
|
||||||
:options {}
|
|
||||||
:shapes-by-id {}})
|
|
||||||
sql "insert into project_pages (id, user_id, file_id, name, version,
|
sql "insert into project_pages (id, user_id, file_id, name, version,
|
||||||
ordering, data)
|
ordering, data)
|
||||||
values ($1, $2, $3, $4, 0, 1, $5) returning id"]
|
values ($1, $2, $3, $4, 0, 1, $5) returning id"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue