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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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);