fix update sql

This commit is contained in:
Hongbo Wu 2023-10-24 13:12:59 +08:00
parent 3c75a23e75
commit 056bf9ebf1
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ export class LibraryItem {
@JoinColumn({ name: 'upload_file_id' })
uploadFile?: UploadFile
// get upload_file_id without loading the uploadFile entity
// get upload_file_id without joining relations
@Column('text', { nullable: true })
uploadFileId?: string

View file

@ -242,7 +242,7 @@ export const parsedContentToLibraryItem = ({
publishedAt: validatedDate(
publishedAt || parsedContent?.publishedDate || undefined
),
uploadFile: { id: uploadFileId ?? undefined },
uploadFileId: uploadFileId || undefined,
readingProgressTopPercent: 0,
readingProgressHighestReadAnchor: 0,
state: state