0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

Revert some changes to the audit validation

This commit is contained in:
Andrey Antukh 2023-07-04 19:27:24 +02:00
parent bf297539ae
commit 8f8d90abbc

View file

@ -51,15 +51,13 @@
(db/insert-multi! pool :audit-log event-columns events))))
(def schema:event
[:schema {:registry
{::valid-any [:or ::sm/inst :int :double [:string {:max 250}]]}}
[:map {:title "Event"}
[:name [:string {:max 250}]]
[:type [:string {:max 250}]]
[:props
[:map-of :keyword ::valid-any]]
[:context {:optional true}
[:map-of :keyword ::valid-any]]]])
[:map {:title "Event"}
[:name [:string {:max 250}]]
[:type [:string {:max 250}]]
[:props
[:map-of :keyword :any]]
[:context {:optional true}
[:map-of :keyword :any]]])
(def schema:push-audit-events
[:map {:title "push-audit-events"}