From 6f7c89a76b727245d7e64bb5c33ac7a5ae2d7c97 Mon Sep 17 00:00:00 2001 From: soxx Date: Tue, 28 Jan 2025 14:05:48 +0100 Subject: [PATCH] fix: incorrect struct field names for TagAlias and TagGroup --- pkg/models/tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/tag.go b/pkg/models/tag.go index 55b10ff..2fd3cc6 100644 --- a/pkg/models/tag.go +++ b/pkg/models/tag.go @@ -18,7 +18,7 @@ func (Tag) TableName() string { type TagAlias struct { ID TagAliasID `json:"id" gorm:"primaryKey"` Name TagAliasName `json:"name"` - TagID TagID `json:"tag_name"` + TagID TagID `json:"tag_id"` } func (TagAlias) TableName() string { @@ -29,7 +29,7 @@ func (TagAlias) TableName() string { type TagGroup struct { ID TagGroupID `json:"id" gorm:"primaryKey"` Name TagGroupName `json:"name"` - TagID TagID `json:"tag_name"` + TagID TagID `json:"tag_id"` } func (TagGroup) TableName() string {