mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
make author optional
This commit is contained in:
parent
396ada28b8
commit
1a973faadc
2 changed files with 5 additions and 3 deletions
|
|
@ -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: '',
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export interface Chapter {
|
|||
wordCount: number
|
||||
thumbnail?: string
|
||||
html: string
|
||||
author: string
|
||||
author?: string
|
||||
}
|
||||
|
||||
export interface Digest {
|
||||
|
|
|
|||
Loading…
Reference in a new issue