diff --git a/package.json b/package.json index f53e15cd4a..5bd9afd1ae 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uwazi", - "version": "1.177.0-rc4", + "version": "1.177.0-rc5", "description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.", "keywords": [ "react" diff --git a/scripts/filesHealthCheck.ts b/scripts/filesHealthCheck.ts index 91692adda6..25adc78376 100644 --- a/scripts/filesHealthCheck.ts +++ b/scripts/filesHealthCheck.ts @@ -34,7 +34,7 @@ function print(content: any, error?: 'error') { process[error ? 'stderr' : 'stdout'].write(`${LINE_PREFIX}${JSON.stringify(content)}\n`); } -type FileRecord = { type: string; filename: string }; +type FileRecord = { type: string; filename: string; url?: string }; function filterFilesInStorage(files: string[]) { return files.filter(file => !file.endsWith('activity.log')); @@ -53,7 +53,7 @@ async function handleTenant(tenantName: string) { storage.getPath(file.filename, file.type) ); - if (!existsInStorage) { + if (!existsInStorage && !(file.type === 'attachment' && file.url)) { missingInStorage += 1; print( {