Add more verbosity
All checks were successful
Demo - Build & Deploy to Scaleway / build-and-push-images-lecoffre (push) Successful in 1m44s
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:39:01 +02:00
parent b70dee2afe
commit 6472d2e0e4

View File

@ -171,6 +171,7 @@ export default class OfficeFoldersController extends ApiController {
const hasInvalidDocument = documents.some((document: any) => { const hasInvalidDocument = documents.some((document: any) => {
const documentHydrated = Document.hydrate<Document>(document, { strategy: "excludeAll" }); const documentHydrated = Document.hydrate<Document>(document, { strategy: "excludeAll" });
console.debug('Checking document:', JSON.stringify(documentHydrated));
return documentHydrated.document_status !== "VALIDATED" && return documentHydrated.document_status !== "VALIDATED" &&
documentHydrated.document_status !== "REFUSED"; documentHydrated.document_status !== "REFUSED";
}); });
@ -186,6 +187,7 @@ export default class OfficeFoldersController extends ApiController {
if (documentHydrated.document_status === "VALIDATED") { if (documentHydrated.document_status === "VALIDATED") {
documentHydrated.files?.forEach((file: any) => { documentHydrated.files?.forEach((file: any) => {
const fileHydrated = File.hydrate<File>(file, { strategy: "excludeAll" }); const fileHydrated = File.hydrate<File>(file, { strategy: "excludeAll" });
console.debug('Adding hash of file:', JSON.stringify(fileHydrated));
folderHashes.push(fileHydrated.hash); folderHashes.push(fileHydrated.hash);
}); });
} }