OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
log duration issue
Carl-Gerhard Lindesvärd0ae259f964a5
diff --git a/apps/sdk-api/src/controllers/event.controller.ts b/apps/sdk-api/src/controllers/event.controller.tsindex ea54114f0..34335b96d 100644--- a/apps/sdk-api/src/controllers/event.controller.ts+++ b/apps/sdk-api/src/controllers/event.controller.ts@@ -259,6 +259,11 @@ export async function postEvent(}if (payload.name === 'screen_view') {+ if (duration < 0) {+ console.log('--- DURATION IS NEGATIVE ---');+ console.log('prevEvent', JSON.stringify(prevEvent));+ console.log('current', JSON.stringify(payload));+ }await job.updateData({type: 'createEvent',payload: {