mirror of
https://github.com/penpot/penpot.git
synced 2025-06-08 05:21:38 +02:00
🐛 Fix incorrect deduplication of tasks on webhooks
This commit is contained in:
parent
6eedb5315b
commit
bdd00be5e4
2 changed files with 14 additions and 15 deletions
|
@ -123,16 +123,12 @@
|
|||
;; set is different than the persisted one, update it on the
|
||||
;; database.
|
||||
|
||||
(defn webhook-batch-keyfn
|
||||
[props]
|
||||
(str "rpc:update-file:" (:id props)))
|
||||
|
||||
(sv/defmethod ::update-file
|
||||
{::climit/queue :update-file
|
||||
::climit/key-fn :id
|
||||
::webhooks/event? true
|
||||
::webhooks/batch-timeout (dt/duration "2m")
|
||||
::webhooks/batch-key webhook-batch-keyfn
|
||||
::webhooks/batch-key :id
|
||||
::doc/added "1.17"}
|
||||
[{:keys [pool] :as cfg} {:keys [id profile-id] :as params}]
|
||||
(db/with-atomic [conn pool]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue