Skip to content

Commit 1273222

Browse files
committed
save event
1 parent 0ce40d3 commit 1273222

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cls/ZPM/Analytics/Event.cls

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ ClassMethod SaveEvent(action As %String, ip As %String = "", json As %DynamicObj
4646
Set event = ..%New()
4747
Set event.Action = action
4848
Set event.IP = ip
49+
DO event.%JSONImport(json)
50+
$$$ThrowOnError(event.%Save())
4951
If ##class(%Dictionary.CompiledClass).%ExistsId("ZPM.Analytics.IP") {
5052
Do ##class(ZPM.Analytics.IP).SetGeo(event, ip)
5153
}
52-
DO event.%JSONImport(json)
5354
$$$ThrowOnError(event.%Save())
5455
Return $$$OK
5556
} Catch ex {

0 commit comments

Comments
 (0)