Add more verbosity
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m43s
Demo - Build & Deploy to Scaleway / deploy-back-lecoffre (push) Successful in 3s
Demo - Build & Deploy to Scaleway / deploy-cron-lecoffre (push) Successful in 3s

This commit is contained in:
Sosthene 2025-07-18 15:42:35 +02:00
parent b70dee2afe
commit 9aa2072264

View File

@ -171,6 +171,7 @@ export default class OfficeFoldersController extends ApiController {
const hasInvalidDocument = documents.some((document: any) => {
const documentHydrated = Document.hydrate<Document>(document, { strategy: "excludeAll" });
console.log('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>(file, { strategy: "excludeAll" });
console.log('Adding hash of file:', JSON.stringify(fileHydrated));
folderHashes.push(fileHydrated.hash);
});
}