Skip to content

Commit

Permalink
Merge pull request #104 from lazyguru/fix-key-issue
Browse files Browse the repository at this point in the history
Fix: rename json tag for Username and Id fields
  • Loading branch information
lazyguru authored Jun 9, 2024
2 parents 129c8fc + 1e955be commit 2780ac1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/model/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package model

type Actor struct {
ActorType string `json:"actor_type" gorm:"primarykey"`
Id string `json:"actor_id" gorm:"primarykey"`
Username string `json:"display_name,omitempty" gorm:"not null"`
Id string `json:"id" gorm:"primarykey"`
Username string `json:"username,omitempty" gorm:"not null"`
Name string `json:"name,omitempty" gorm:"nullable"`
Bio string `json:"bio"`
MatrixUserId string `json:"matrix_user_id,omitempty"`
Expand Down

0 comments on commit 2780ac1

Please sign in to comment.