fix: add author to the chapter in digest

This commit is contained in:
Hongbo Wu 2024-05-15 17:38:24 +08:00
parent 6d0edbd61a
commit 505e3666b6
2 changed files with 2 additions and 0 deletions

View file

@ -832,6 +832,7 @@ export const createDigest = async (jobData: CreateDigestData) => {
thumbnail: item.libraryItem.thumbnail ?? undefined,
wordCount: speechFiles[index].wordCount,
html: summariesInHtml[index],
author: item.libraryItem.author ?? '',
})),
createdAt: new Date(),
description: '',

View file

@ -10,6 +10,7 @@ export interface Chapter {
wordCount: number
thumbnail?: string
html: string
author: string
}
export interface Digest {