🎉 Add tests for webhooks rpc and logger

This commit is contained in:
Andrey Antukh 2022-12-12 08:31:48 +01:00
parent 21abd98b95
commit f2b60261f8
5 changed files with 183 additions and 11 deletions

View file

@ -99,8 +99,8 @@
{::doc/added "1.17"}
[{:keys [::db/pool ::wrk/executor] :as cfg} {:keys [profile-id team-id] :as params}]
(check-edition-permissions! pool profile-id team-id)
(->> (validate-webhook! cfg nil params)
(p/fmap executor (fn [_] (validate-quotes! cfg params)))
(->> (validate-quotes! cfg params)
(p/fmap executor (fn [_] (validate-webhook! cfg nil params)))
(p/fmap executor (fn [_] (insert-webhook! cfg params)))))
(s/def ::update-webhook