From 6472d2e0e453c22b91e6ebf24e5abe17b98cbd2f Mon Sep 17 00:00:00 2001 From: Sosthene Date: Fri, 18 Jul 2025 15:39:01 +0200 Subject: [PATCH] Add more verbosity --- src/app/api/notary/OfficeFolderAnchorsController.ts | 2 ++ 1 file changed, 2 insertions(+) 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); }); }