mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 08:29:42 -05:00
🐛 Fix feedback crash
This commit is contained in:
parent
9dcad7ebef
commit
7185199d05
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
||||||
(ns app.http.feedback
|
(ns app.http.feedback
|
||||||
"A general purpose feedback module."
|
"A general purpose feedback module."
|
||||||
(:require
|
(:require
|
||||||
|
[app.common.data :as d]
|
||||||
[app.common.exceptions :as ex]
|
[app.common.exceptions :as ex]
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.config :as cf]
|
[app.config :as cf]
|
||||||
|
@ -44,7 +45,8 @@
|
||||||
[{:keys [pool] :as cfg} {:keys [profile-id] :as request}]
|
[{:keys [pool] :as cfg} {:keys [profile-id] :as request}]
|
||||||
(let [ftoken (cf/get :feedback-token ::no-token)
|
(let [ftoken (cf/get :feedback-token ::no-token)
|
||||||
token (yrq/get-header request "x-feedback-token")
|
token (yrq/get-header request "x-feedback-token")
|
||||||
params (::yrq/params request)]
|
params (d/merge (:params request)
|
||||||
|
(:body-params request))]
|
||||||
(cond
|
(cond
|
||||||
(uuid? profile-id)
|
(uuid? profile-id)
|
||||||
(let [profile (profile/retrieve-profile-data pool profile-id)
|
(let [profile (profile/retrieve-profile-data pool profile-id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue