mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 06:06:39 +02:00
✨ Fix review issues.
This commit is contained in:
parent
b3252ec2b2
commit
a4d6524cb6
7 changed files with 17 additions and 17 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue