log duration issue

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-28 12:17:43 +01:00
parent 16b67f1b2b
commit 0ae259f964

View File

@@ -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: {