fix: incorrect struct field names for TagAlias and TagGroup
All checks were successful
Gitea Build Check / Build (pull_request) Successful in 2m56s
Gitea Build Check / Build (push) Successful in 2m56s

This commit is contained in:
soxx 2025-01-28 14:05:48 +01:00
parent 0e87b43339
commit 6f7c89a76b

View File

@ -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 {