OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.
fix(buffer): avoid merging properties
Carl-Gerhard Lindesvärddbc2a32458d0
diff --git a/packages/db/src/buffers/event-buffer.ts b/packages/db/src/buffers/event-buffer.tsindex 4e2a5a1b6..4a5589303 100644--- a/packages/db/src/buffers/event-buffer.ts+++ b/packages/db/src/buffers/event-buffer.ts@@ -1,4 +1,4 @@-import { groupBy } from 'ramda';+import { groupBy, omit, pick } from 'ramda';import SuperJSON from 'superjson';import { deepMergeObjects } from '@openpanel/common';@@ -92,7 +92,7 @@ export class EventBuffer extends RedisBuffer<IClickhouseEvent> {});const event = deepMergeObjects<IClickhouseEvent>(- lastEventWithData?.event || {},+ omit(['properties', 'duration'], lastEventWithData?.event || {}),item.event);