0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-15 11:38:24 -05:00

🐛 Fix awsns endpoint

This commit is contained in:
Andrey Antukh 2022-07-13 13:23:13 +02:00
parent 99dea51eea
commit 2e077e3ea9

View file

@ -16,6 +16,7 @@
[integrant.core :as ig] [integrant.core :as ig]
[jsonista.core :as j] [jsonista.core :as j]
[promesa.exec :as px] [promesa.exec :as px]
[yetti.request :as yrq]
[yetti.response :as yrs])) [yetti.response :as yrs]))
(declare parse-json) (declare parse-json)
@ -31,9 +32,9 @@
(defmethod ig/init-key ::handler (defmethod ig/init-key ::handler
[_ {:keys [executor] :as cfg}] [_ {:keys [executor] :as cfg}]
(fn [request respond _] (fn [request respond _]
(let [data (slurp (:body request))] (let [data (-> request yrq/body slurp)]
(px/run! executor #(handle-request cfg data)) (px/run! executor #(handle-request cfg data)))
(respond (yrs/response 200))))) (respond (yrs/response 200))))
(defn handle-request (defn handle-request
[{:keys [http-client] :as cfg} data] [{:keys [http-client] :as cfg} data]