mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 09:56:37 +02:00
✨ Minor improvements on projects_roles table.
This commit is contained in:
parent
b66bc02098
commit
b4336f7ceb
5 changed files with 25 additions and 37 deletions
|
@ -36,12 +36,10 @@
|
|||
where p.user_id = $1
|
||||
order by p.created_at asc")
|
||||
|
||||
(s/def ::projects-query
|
||||
(s/def ::projects
|
||||
(s/keys :req-un [::user]))
|
||||
|
||||
(sq/defquery :projects
|
||||
{:doc "Query all projects"
|
||||
:spec ::projects-query}
|
||||
(sq/defquery ::projects
|
||||
[{:keys [user] :as params}]
|
||||
(-> (db/query db/pool [projects-sql user])
|
||||
(p/then (fn [rows]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue