Update types.ts

This commit is contained in:
Nicolas 2024-10-03 17:00:33 -03:00
parent 1a1ac9fd60
commit 49bd95327e

View File

@ -461,8 +461,8 @@ export function legacyDocumentConverter(doc: any): Document {
...doc.metadata,
pageError: undefined,
pageStatusCode: undefined,
error: doc.metadata.pageError,
statusCode: doc.metadata.pageStatusCode,
error: doc.metadata?.pageError,
statusCode: doc.metadata?.pageStatusCode,
},
};
}