mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 07:01:39 +02:00
🐛 Fix error in fixtures loading
This commit is contained in:
parent
526b6e1f03
commit
8403352af8
1 changed files with 6 additions and 7 deletions
|
@ -75,7 +75,7 @@
|
||||||
(let [rng (java.util.Random. 1)]
|
(let [rng (java.util.Random. 1)]
|
||||||
(letfn [(create-profile [conn index]
|
(letfn [(create-profile [conn index]
|
||||||
(let [id (mk-uuid "profile" index)
|
(let [id (mk-uuid "profile" index)
|
||||||
_ (log/info "create profile" id)
|
_ (log/info "create profile" index id)
|
||||||
|
|
||||||
prof (register-profile conn
|
prof (register-profile conn
|
||||||
{:id id
|
{:id id
|
||||||
|
@ -98,10 +98,9 @@
|
||||||
(create-team [conn index]
|
(create-team [conn index]
|
||||||
(let [id (mk-uuid "team" index)
|
(let [id (mk-uuid "team" index)
|
||||||
name (str "Team" index)]
|
name (str "Team" index)]
|
||||||
(log/info "create team" id)
|
(log/info "create team" index id)
|
||||||
(db/insert! conn :team {:id id
|
(db/insert! conn :team {:id id
|
||||||
:name name
|
:name name})
|
||||||
:photo ""})
|
|
||||||
id))
|
id))
|
||||||
|
|
||||||
(create-teams [conn]
|
(create-teams [conn]
|
||||||
|
@ -113,7 +112,7 @@
|
||||||
(let [id (mk-uuid "file" project-id index)
|
(let [id (mk-uuid "file" project-id index)
|
||||||
name (str "file" index)
|
name (str "file" index)
|
||||||
data (cp/make-file-data id)]
|
data (cp/make-file-data id)]
|
||||||
(log/info "create file" id)
|
(log/info "create file" index id)
|
||||||
(db/insert! conn :file
|
(db/insert! conn :file
|
||||||
{:id id
|
{:id id
|
||||||
:data (blob/encode data)
|
:data (blob/encode data)
|
||||||
|
@ -135,7 +134,7 @@
|
||||||
(create-project [conn team-id owner-id index]
|
(create-project [conn team-id owner-id index]
|
||||||
(let [id (mk-uuid "project" team-id index)
|
(let [id (mk-uuid "project" team-id index)
|
||||||
name (str "project " index)]
|
name (str "project " index)]
|
||||||
(log/info "create project" id)
|
(log/info "create project" index id)
|
||||||
(db/insert! conn :project
|
(db/insert! conn :project
|
||||||
{:id id
|
{:id id
|
||||||
:team-id team-id
|
:team-id team-id
|
||||||
|
@ -188,7 +187,7 @@
|
||||||
project-id (:default-project-id owner)
|
project-id (:default-project-id owner)
|
||||||
data (cp/make-file-data id)]
|
data (cp/make-file-data id)]
|
||||||
|
|
||||||
(log/info "create draft file" id)
|
(log/info "create draft file" index id)
|
||||||
(db/insert! conn :file
|
(db/insert! conn :file
|
||||||
{:id id
|
{:id id
|
||||||
:data (blob/encode data)
|
:data (blob/encode data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue