Skip to content
Snippets Groups Projects
Commit 41c136fb authored by Cam Saul's avatar Cam Saul
Browse files

fix typo

parent 7dac0f5d
Branches
Tags
No related merge requests found
......@@ -22,8 +22,8 @@
{name [Required NonEmptyString]
slug [Required NonEmptyString]} ; TODO - check logo_url ?
(check-superuser)
(let-500 [{:keys [id] As new-org} (->> (util/select-non-nil-keys body :slug :name :description :logo_url)
(mapply ins Org))]
(let-500 [{:keys [id] :as new-org} (->> (util/select-non-nil-keys body :slug :name :description :logo_url)
(mapply ins Org))]
(grant-org-perm id *current-user-id* true) ; now that the Org exists, add the creator as the first admin member
new-org)) ; make sure the api response is still the newly created org
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment