From 606aa4e4070bd2f2c85b90e8f2ff763f18e971c8 Mon Sep 17 00:00:00 2001 From: Federico Nocetti Date: Fri, 26 Jul 2024 06:25:34 -0300 Subject: [PATCH 1/2] Ignore url attachments in files health check (#7003) --- scripts/filesHealthCheck.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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( { From 61bdab3d579b92b958c1f6d30d43f44bab39ffd5 Mon Sep 17 00:00:00 2001 From: Daneryl Date: Fri, 26 Jul 2024 11:26:45 +0200 Subject: [PATCH 2/2] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 60232ea2d7..a7b5506f18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "uwazi", - "version": "1.176.2", + "version": "1.176.3", "description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.", "keywords": [ "react"