From 4a4ffea71c77d964bf8117aa542b73d514991ffa Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 5 Jun 2024 09:38:09 +0800 Subject: [PATCH] fixed attachment.uuid --- app/views/api/v1/attachments/_simple_detail.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/api/v1/attachments/_simple_detail.json.jbuilder b/app/views/api/v1/attachments/_simple_detail.json.jbuilder index 160b92054..f2accd906 100644 --- a/app/views/api/v1/attachments/_simple_detail.json.jbuilder +++ b/app/views/api/v1/attachments/_simple_detail.json.jbuilder @@ -1,4 +1,4 @@ -json.id attachment.uuid || attachment.uuid +json.id attachment.uuid.blank? ? attachment.id : attachment.uuid json.title attachment.title json.description attachment.description json.filesize number_to_human_size(attachment.filesize)