Skip to content

Commit 54c5df9

Browse files
author
xixas
committed
fix: handle empty summary
1 parent c74f06f commit 54c5df9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/api/src/jobs/consumers/summary/summary.consumer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export class SummaryConsumer {
4747

4848
this.logger.log(`Generating summary for job with ID: ${jobId}`);
4949
const summaryText = await this.meetingSummarizerService.generateMeetingSummary(fileContent);
50-
summary.outputText = summaryText;
50+
summary.outputText =
51+
summaryText ||
52+
'Summary could not be generated, please check if its a valid teams transcript file';
5153
// Update job status to SUCCESS
5254
summary.jobStatus = JobStatus.SUCCESS;
5355
this.logger.log(`Summary generated successfully for job with ID: ${jobId}`);

0 commit comments

Comments
 (0)