From d5d3380bf5cac65c25a5cf7f4c19510d0d772a9e Mon Sep 17 00:00:00 2001 From: johnmeshulam <55348702+johnmeshulam@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:49:45 +0200 Subject: [PATCH] Do not jeopardize insights when merging matches --- apps/backend/src/websocket/handlers/field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/websocket/handlers/field.ts b/apps/backend/src/websocket/handlers/field.ts index e622c4f8..46589022 100644 --- a/apps/backend/src/websocket/handlers/field.ts +++ b/apps/backend/src/websocket/handlers/field.ts @@ -312,7 +312,7 @@ export const handleMergeMatches = async ( await db.updateMatch( { _id: new ObjectId(fromMatchId) }, - { participants: fromMatchNewParticipants, status: 'completed' } + { participants: fromMatchNewParticipants, status: 'completed', startTime: new Date() } ); await db.updateMatch({ _id: new ObjectId(toMatchId) }, { participants: toMatchNewParticipants });