Add more verbosity
All checks were successful
All checks were successful
This commit is contained in:
parent
b70dee2afe
commit
6472d2e0e4
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user