mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 11:51:39 +02:00
🐛 Fix audit context forwarding on explicit events
This commit is contained in:
parent
343f3feed3
commit
7df9ac5e4f
6 changed files with 79 additions and 88 deletions
|
@ -413,15 +413,13 @@
|
|||
{:modified-at (dt/now)}
|
||||
{:id project-id})
|
||||
|
||||
(let [props (audit/clean-props params)
|
||||
context (audit/params->context params)]
|
||||
(let [props (audit/clean-props params)]
|
||||
(doseq [file-id result]
|
||||
(audit/submit! cfg
|
||||
{::audit/type "action"
|
||||
::audit/name "create-file"
|
||||
::audit/profile-id profile-id
|
||||
::audit/props (assoc props :id file-id)
|
||||
::audit/context context})))
|
||||
(let [props (assoc props :id file-id)
|
||||
event (-> (audit/event-from-rpc-params params)
|
||||
(assoc ::audit/name "create-file")
|
||||
(assoc ::audit/props props))]
|
||||
(audit/submit! cfg event))))
|
||||
|
||||
result))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue