From e297b1b4ea02e1126f61137c403332caeab8a370 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 28 Dec 2024 16:37:23 +0800 Subject: [PATCH] :bug: Fix backward compability --- pkg/internal/models/attachments.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/internal/models/attachments.go b/pkg/internal/models/attachments.go index 82108e1..7b1e91f 100644 --- a/pkg/internal/models/attachments.go +++ b/pkg/internal/models/attachments.go @@ -65,7 +65,8 @@ type Attachment struct { AccountID uint `json:"account_id"` // Outdated fields, just for backward compatibility - IsMature bool `json:"is_mature" gorm:"-"` + IsUploaded bool `json:"is_uploaded" gorm:"-"` + IsMature bool `json:"is_mature" gorm:"-"` } // Data model for in progress multipart attachments