From 17557053392d8f1225da591477b9dde1f0372060 Mon Sep 17 00:00:00 2001 From: jhyang0 Date: Tue, 8 Jul 2025 02:50:57 +0900 Subject: [PATCH] summary fix --- src/features/listen/summary/summaryService.js | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/features/listen/summary/summaryService.js b/src/features/listen/summary/summaryService.js index 860fa35..58a4ecc 100644 --- a/src/features/listen/summary/summaryService.js +++ b/src/features/listen/summary/summaryService.js @@ -174,14 +174,18 @@ Keep all points concise and build upon previous analysis if provided.`, const structuredData = this.parseResponseText(responseText, this.previousAnalysisResult); if (this.currentSessionId) { - summaryRepository.saveSummary({ - sessionId: this.currentSessionId, - text: responseText, - tldr: structuredData.summary.join('\n'), - bullet_json: JSON.stringify(structuredData.topic.bullets), - action_json: JSON.stringify(structuredData.actions), - model: 'gpt-4.1' - }).catch(err => console.error('[DB] Failed to save summary:', err)); + try { + summaryRepository.saveSummary({ + sessionId: this.currentSessionId, + text: responseText, + tldr: structuredData.summary.join('\n'), + bullet_json: JSON.stringify(structuredData.topic.bullets), + action_json: JSON.stringify(structuredData.actions), + model: 'gpt-4.1' + }); + } catch (err) { + console.error('[DB] Failed to save summary:', err); + } } // 분석 결과 저장