0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-10 14:01:29 -05:00

🔥 Remove repeated code.

This commit is contained in:
Andrey Antukh 2020-01-20 13:24:39 +01:00
parent c4c0daddd3
commit 245b5e3b79

View file

@ -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"]