mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Fix unexpected exception on audit log handler.
This commit is contained in:
parent
45e501ce02
commit
133c0312be
1 changed files with 4 additions and 3 deletions
|
@ -116,9 +116,10 @@
|
||||||
(db/inet ip-addr)
|
(db/inet ip-addr)
|
||||||
(db/tjson (:props event))
|
(db/tjson (:props event))
|
||||||
(db/tjson (d/without-nils (:context event)))]))
|
(db/tjson (d/without-nils (:context event)))]))
|
||||||
events (us/conform ::events events)
|
events (us/conform ::events events)]
|
||||||
rows (into [] prepare-xf events)]
|
(when (seq events)
|
||||||
(db/insert-multi! pool :audit-log columns rows))
|
(->> (into [] prepare-xf events)
|
||||||
|
(db/insert-multi! pool :audit-log columns))))
|
||||||
(catch Throwable e
|
(catch Throwable e
|
||||||
(let [xdata (ex-data e)]
|
(let [xdata (ex-data e)]
|
||||||
(if (= :spec-validation (:code xdata))
|
(if (= :spec-validation (:code xdata))
|
||||||
|
|
Loading…
Add table
Reference in a new issue