make author optional

This commit is contained in:
Hongbo Wu 2024-05-15 18:12:54 +08:00
parent 396ada28b8
commit 1a973faadc
2 changed files with 5 additions and 3 deletions

View file

@ -834,10 +834,12 @@ export const createDigest = async (jobData: CreateDigestData) => {
title: item.libraryItem.title,
id: item.libraryItem.id,
url: getItemUrl(item.libraryItem.id),
thumbnail: item.libraryItem.thumbnail ?? undefined,
thumbnail: item.libraryItem.thumbnail
? createThumbnailProxyUrl(item.libraryItem.thumbnail)
: undefined,
wordCount: speechFiles[index].wordCount,
html: summariesInHtml[index],
author: item.libraryItem.author ?? '',
author: item.libraryItem.author ?? undefined,
})),
createdAt: new Date(),
description: '',

View file

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