Fix review issues.

This commit is contained in:
Andrey Antukh 2020-09-28 11:39:01 +02:00 committed by Alonso Torres
parent b3252ec2b2
commit a4d6524cb6
7 changed files with 17 additions and 17 deletions

View file

@ -108,10 +108,10 @@
;; --- Mutation: Toggle Project Pin
(s/def ::is-pinned ::us/boolean)
(s/def ::toggle-project-pin
(s/def ::update-project-pin
(s/keys :req-un [::profile-id ::id ::team-id ::is-pinned]))
(sm/defmutation ::toggle-project-pin
(sm/defmutation ::update-project-pin
[{:keys [id profile-id team-id is-pinned] :as params}]
(db/with-atomic [conn db/pool]
(db/update! conn :team-project-profile-rel
@ -121,6 +121,7 @@
:team-id team-id})
nil))
;; --- Mutation: Rename Project
(declare rename-project)

View file

@ -71,7 +71,7 @@
(def sql:projects
"select p.*,
tpp.is_pinned,
coalesce(tpp.is_pinned, false) as is_pinned,
(select count(*) from file as f
where f.project_id = p.id
and deleted_at is null) as count