mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
🐛 Fix incorrect output on webhook internal queries
This commit is contained in:
parent
abeec9f869
commit
4b26b6fc02
1 changed files with 3 additions and 3 deletions
|
@ -25,11 +25,11 @@
|
||||||
|
|
||||||
(defn- lookup-webhooks-by-team
|
(defn- lookup-webhooks-by-team
|
||||||
[pool team-id]
|
[pool team-id]
|
||||||
(db/exec! pool ["select * from webhook where team_id=? and is_active=true" team-id]))
|
(db/exec! pool ["select w.* from webhook as w where team_id=? and is_active=true" team-id]))
|
||||||
|
|
||||||
(defn- lookup-webhooks-by-project
|
(defn- lookup-webhooks-by-project
|
||||||
[pool project-id]
|
[pool project-id]
|
||||||
(let [sql [(str "select * from webhook as w"
|
(let [sql [(str "select w.* from webhook as w"
|
||||||
" join project as p on (p.team_id = w.team_id)"
|
" join project as p on (p.team_id = w.team_id)"
|
||||||
" where p.id = ? and w.is_active = true")
|
" where p.id = ? and w.is_active = true")
|
||||||
project-id]]
|
project-id]]
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
(defn- lookup-webhooks-by-file
|
(defn- lookup-webhooks-by-file
|
||||||
[pool file-id]
|
[pool file-id]
|
||||||
(let [sql [(str "select * from webhook as w"
|
(let [sql [(str "select w.* from webhook as w"
|
||||||
" join project as p on (p.team_id = w.team_id)"
|
" join project as p on (p.team_id = w.team_id)"
|
||||||
" join file as f on (f.project_id = p.id)"
|
" join file as f on (f.project_id = p.id)"
|
||||||
" where f.id = ? and w.is_active = true")
|
" where f.id = ? and w.is_active = true")
|
||||||
|
|
Loading…
Reference in a new issue