mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 17:31:39 +02:00
✨ Improve internal handling of external-session-id
This commit is contained in:
parent
8da153f604
commit
6a253871b0
6 changed files with 60 additions and 31 deletions
|
@ -398,7 +398,7 @@
|
|||
;; --- COMMAND: Clone Template
|
||||
|
||||
(defn- clone-template
|
||||
[cfg {:keys [project-id ::rpc/profile-id ::rpc/external-session-id] :as params} template]
|
||||
[cfg {:keys [project-id ::rpc/profile-id] :as params} template]
|
||||
(db/tx-run! cfg (fn [{:keys [::db/conn ::wrk/executor] :as cfg}]
|
||||
;; NOTE: the importation process performs some operations that
|
||||
;; are not very friendly with virtual threads, and for avoid
|
||||
|
@ -413,9 +413,8 @@
|
|||
{:modified-at (dt/now)}
|
||||
{:id project-id})
|
||||
|
||||
(let [props (-> (audit/clean-props params)
|
||||
(assoc :triggered-by "clone-template"))
|
||||
context {:external-session-id external-session-id}]
|
||||
(let [props (audit/clean-props params)
|
||||
context (audit/params->context params)]
|
||||
(doseq [file-id result]
|
||||
(audit/submit! cfg
|
||||
{::audit/type "action"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue