Skip to content

Commit 804d04b

Browse files
authored
Merge pull request #102 from intersystems-community/revert-101-event-process
Revert "Event process"
2 parents d6aa65c + 89d6880 commit 804d04b

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/cls/ZPM/Analytics/AbstractEventProcessor.cls

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/cls/ZPM/Analytics/Event.cls

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Class ZPM.Analytics.Event Extends (%Persistent, %JSON.Adaptor)
33

44
Parameter DSTIME = "AUTO";
55

6-
/// Server date and time, saving the data
6+
/// Server date and time, saving the data
77
Property TS As %PosixTime(%JSONINCLUDE = "none") [ SqlComputeCode = {set {*}=##class(%Library.PosixTime).CurrentTimeStamp()}, SqlComputed, SqlComputeOnChange = %%INSERT ];
88

99
/// Event type: download, install, uninstall
@@ -48,10 +48,8 @@ ClassMethod SaveEvent(action As %String, ip As %String = "", json As %DynamicObj
4848
Set event.IP = ip
4949
Do event.%JSONImport(json)
5050
$$$ThrowOnError(event.%Save())
51-
// get all ZPM.Analytics.AbstractEventProcessor subclasses
52-
set rs = ##class(%Dictionary.ClassDefinitionQuery).SubclassOfFunc("ZPM.Analytics.AbstractEventProcessor")
53-
while (rs.%Next()) {
54-
do $classmethod(rs.%GetData(1), "Process", event)
51+
If ##class(%Dictionary.CompiledClass).%ExistsId("ZPM.Analytics.IP") {
52+
Do ##class(ZPM.Analytics.IP).SetGeo(event, ip)
5553
}
5654
$$$ThrowOnError(event.%Save())
5755
Return $$$OK

0 commit comments

Comments
 (0)