Skip to content

Commit

Permalink
Make user avatar field nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Oct 13, 2024
1 parent 4997c10 commit 313b2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ type User struct {
Name string `db:"name" json:"name"`
Type string `db:"type" json:"type"`
Status string `db:"status" json:"status"`
Avatar string `db:"-" json:"avatar"`
Avatar null.String `db:"-" json:"avatar"`
Permissions map[string]struct{} `db:"-" json:"-"`
LoggedInAt null.Time `db:"loggedin_at" json:"loggedin_at"`

Expand Down

0 comments on commit 313b2af

Please sign in to comment.