From cfd1735aee463b65e9979eb30516b802a8bc48fd Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 22 Feb 2025 12:34:40 +0800 Subject: [PATCH] :bug: Fix panic --- pkg/internal/services/attachments.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/attachments.go b/pkg/internal/services/attachments.go index e9834c5..f0b0db5 100644 --- a/pkg/internal/services/attachments.go +++ b/pkg/internal/services/attachments.go @@ -97,7 +97,7 @@ func GetAttachmentCache(rid string) (models.Attachment, bool) { GetAttachmentCacheKey(rid), new(models.Attachment), ); err == nil { - return val.(models.Attachment), true + return *val.(*models.Attachment), true } return models.Attachment{}, false }