From d6399e26dbcc94a2f7dab8825df8ee830d929193 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Wed, 5 Jun 2024 09:34:35 +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 78e72703..160b9205 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 +json.id attachment.uuid || attachment.uuid json.title attachment.title json.description attachment.description json.filesize number_to_human_size(attachment.filesize)