🐛 Fix initial data loading issues.

This commit is contained in:
Andrey Antukh 2021-03-08 22:31:14 +01:00
parent f0eaf9aa20
commit 708ba3d7ac
3 changed files with 9 additions and 0 deletions

View file

@ -77,6 +77,8 @@
:team-id (:default-team-id profile)
:name (:project-name data)}]
(db/exec-one! conn ["SET CONSTRAINTS ALL DEFERRED"])
(create-project conn project)
(create-project-role conn {:project-id (:id project)
:profile-id (:id profile)