Skip to content

Commit

Permalink
make the tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 24, 2024
1 parent 46b81c0 commit a307efe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import path from 'path'
import { KAFKA_SESSION_RECORDING_SNAPSHOT_ITEM_EVENTS } from '../../../config/kafka-topics'
import { PipelineEvent, RawEventMessage, RRWebEvent } from '../../../types'
import { status } from '../../../utils/status'
import { cloneObject } from '../../../utils/utils'
import { eventDroppedCounter } from '../metrics'
import { TeamIDWithConfig } from './session-recordings-consumer'
import { IncomingRecordingMessage, PersistedRecordingMessage } from './types'
Expand Down Expand Up @@ -256,7 +257,7 @@ export const reduceRecordingMessages = (messages: IncomingRecordingMessage[]): I
for (const message of messages) {
const key = `${message.team_id}-${message.session_id}`
if (!reducedMessages[key]) {
reducedMessages[key] = message
reducedMessages[key] = cloneObject(message)
} else {
const existingMessage = reducedMessages[key]
for (const [windowId, events] of Object.entries(message.eventsByWindowId)) {
Expand Down

0 comments on commit a307efe

Please sign in to comment.