0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Use the same value for created_at and tracked_at on audit

This commit is contained in:
Andrey Antukh 2022-12-13 09:50:52 +01:00
parent 4e1e67fc3d
commit 797ae22526

View file

@ -143,11 +143,13 @@
(defn- persist-event!
[pool event]
(us/verify! ::event event)
(let [params {:id (uuid/next)
(let [now (dt/now)
params {:id (uuid/next)
:name (:name event)
:type (:type event)
:profile-id (:profile-id event)
:tracked-at (dt/now)
:created-at now
:tracked-at now
:ip-addr (:ip-addr event)
:props (:props event)}]