Skip to content

Commit

Permalink
chore(server): update user model to remove omitempty for is_banned field
Browse files Browse the repository at this point in the history
  • Loading branch information
lareii committed Sep 1, 2024
1 parent 1e83ad1 commit ad9484a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
type User struct {
ID primitive.ObjectID `bson:"_id" json:"id"`
CreatedAt primitive.Timestamp `bson:"created_at" json:"created_at"`
IsBanned bool `bson:"is_banned,omitempty" json:"is_banned,omitempty"`
IsBanned bool `bson:"is_banned" json:"is_banned,omitempty"`
Email string `bson:"email,omitempty" json:"email,omitempty"`
Name string `bson:"name" json:"name"`
Username string `bson:"username" json:"username"`
Expand Down

0 comments on commit ad9484a

Please sign in to comment.