From e23d3d5933329e0dc2ad9c39b792142c51fe0fc4 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 12 Apr 2024 13:26:11 +0800 Subject: [PATCH] update readable content instead --- packages/api/src/services/update_pdf_content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api/src/services/update_pdf_content.ts b/packages/api/src/services/update_pdf_content.ts index 7da584b74..c96b67dce 100644 --- a/packages/api/src/services/update_pdf_content.ts +++ b/packages/api/src/services/update_pdf_content.ts @@ -56,7 +56,7 @@ export const updateContentForFileItem = async (msg: UpdateContentMessage) => { description: msg.description, author: msg.author, // content may not be present if we failed to parse the file - originalContent: msg.content, + readableContent: msg.content, // This event is fired after the file is fully uploaded, // so along with updating content, we mark it as // succeeded or failed based on the message state