fix user model json marshal

This commit is contained in:
Adrien Marquès 2020-03-29 17:03:22 +02:00
parent 73ef0570fd
commit 32afe3ae05
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 1 deletions

View File

@ -6,5 +6,5 @@ type User struct {
Username string `json:"username"`
Firstname string `json:"firstname"`
Lastname string `json:"lastname"`
Articles []Article `gorm:"foreignKey:Author"`
Articles []Article `json:"articles" gorm:"foreignKey:Author"`
}