Update PostHogService.java

This commit is contained in:
Anthony Stirling
2024-10-22 15:36:54 +01:00
committed by GitHub
parent 949b87005c
commit 83ef003505

View File

@@ -54,7 +54,7 @@ public class PostHogService {
}
public void captureEvent(String eventName, Map<String, Object> properties) {
if (!Boolean.getBoolean(applicationProperties.getSystem().getEnableAnalytics())) {
if (!Boolean.parseBoolean(applicationProperties.getSystem().getEnableAnalytics())) {
return;
}
postHog.capture(uniqueId, eventName, properties);