From 92740ad2ff46c75152d0dd1c4d586e4f01ad323c Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Sat, 1 Jul 2023 22:20:22 +0200 Subject: [PATCH] :ambulance: Fix answer upsert on duplicate itemId --- apps/viewer/src/features/chat/helpers/continueBotFlow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/viewer/src/features/chat/helpers/continueBotFlow.ts b/apps/viewer/src/features/chat/helpers/continueBotFlow.ts index 9fc5a6ab2..b011565a0 100644 --- a/apps/viewer/src/features/chat/helpers/continueBotFlow.ts +++ b/apps/viewer/src/features/chat/helpers/continueBotFlow.ts @@ -221,12 +221,12 @@ const saveAnswer = blockId: block.id, groupId: block.groupId, }, - itemId: answer.itemId, }, create: { ...answer, resultId }, update: { content: answer.content, storageUsed: answer.storageUsed, + itemId: answer.itemId, }, }) }