From 88b2f57cf5fdb4eddbca65e39f0a2ab80212da30 Mon Sep 17 00:00:00 2001 From: Frederick Holland Date: Sat, 18 Oct 2025 11:57:47 +1100 Subject: [PATCH] Changed article to use Profile instead of User --- models/article.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/article.go b/models/article.go index a877760..1581063 100644 --- a/models/article.go +++ b/models/article.go @@ -6,7 +6,7 @@ type Article struct { Title string `json:"title"` Sections []ArticleSection `gorm:"serializer:json" json:"sections"` - Author User `gorm:"foreignKey:AuthorId" json:"author"` + Author Profile `gorm:"foreignKey:AuthorId" json:"author"` } type ArticleSection struct {