diff --git a/src/app/api/notary/OfficeFolderAnchorsController.ts b/src/app/api/notary/OfficeFolderAnchorsController.ts index 3f84a5bd..f972b5ec 100644 --- a/src/app/api/notary/OfficeFolderAnchorsController.ts +++ b/src/app/api/notary/OfficeFolderAnchorsController.ts @@ -171,6 +171,7 @@ export default class OfficeFoldersController extends ApiController { const hasInvalidDocument = documents.some((document: any) => { const documentHydrated = Document.hydrate(document, { strategy: "excludeAll" }); + console.debug('Checking document:', JSON.stringify(documentHydrated)); return documentHydrated.document_status !== "VALIDATED" && documentHydrated.document_status !== "REFUSED"; }); @@ -186,6 +187,7 @@ export default class OfficeFoldersController extends ApiController { if (documentHydrated.document_status === "VALIDATED") { documentHydrated.files?.forEach((file: any) => { const fileHydrated = File.hydrate(file, { strategy: "excludeAll" }); + console.debug('Adding hash of file:', JSON.stringify(fileHydrated)); folderHashes.push(fileHydrated.hash); }); }