From 78d7207403f2d00936df2f00a8a310e61c782cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89mile=20R=C3=A9?= Date: Thu, 11 Dec 2025 14:27:10 +0100 Subject: [PATCH] Fix 2nd cubic review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Émile Ré --- pkg/coredata/trust_center_document_access.go | 6 ------ pkg/coredata/trust_center_file.go | 14 ++++++-------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/pkg/coredata/trust_center_document_access.go b/pkg/coredata/trust_center_document_access.go index 1b1eaa00d..51cb3dcef 100644 --- a/pkg/coredata/trust_center_document_access.go +++ b/pkg/coredata/trust_center_document_access.go @@ -83,9 +83,7 @@ SELECT document_id, report_id, trust_center_file_id, - active, status, - requested, created_at, updated_at FROM @@ -134,9 +132,7 @@ SELECT document_id, report_id, trust_center_file_id, - active, status, - requested, created_at, updated_at FROM @@ -186,9 +182,7 @@ SELECT document_id, report_id, trust_center_file_id, - active, status, - requested, created_at, updated_at FROM diff --git a/pkg/coredata/trust_center_file.go b/pkg/coredata/trust_center_file.go index af9296ed4..42cf176bd 100644 --- a/pkg/coredata/trust_center_file.go +++ b/pkg/coredata/trust_center_file.go @@ -106,16 +106,14 @@ func (f *TrustCenterFiles) LoadByIDs( SELECT id, organization_id, - bucket_name, - mime_type, - file_name, - file_key, - file_size, + name, + category, + file_id, + trust_center_visibility, created_at, - updated_at, - deleted_at + updated_at FROM - files + trust_center_files WHERE %s AND id = ANY(@ids);