Skip to content

Commit bf69228

Browse files
committed
fix notification settings model
1 parent 175ff5f commit bf69228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/notification_user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ type NotificationUser struct {
99
Identifier primitive.ObjectID `json:"_id" bson:"_id,omitempty"`
1010
UserId primitive.ObjectID `json:"user_id" bson:"user_id,omitempty"`
1111
Token string `json:"token" bson:"token"`
12-
Settings NotificationSettings `json:"settings" bson:"settings"`
12+
Settings NotificationSettings `json:"settings,omitempty" bson:"settings"`
1313
Device Device `json:"device" bson:"device"`
1414
AddedAt time.Time `json:"added_at,omitempty" bson:"added_at,omitempty"`
1515
UpdatedAt time.Time `json:"updated_at,omitempty" bson:"updated_at,omitempty"`
1616
}
1717

1818
type NotificationSettings struct {
19-
Athlete bool `json:"token" bson:"token"`
19+
Athlete bool `json:"athlete" bson:"athlete"`
2020
Favourites bool `json:"favourites" bson:"favourites"`
2121
Meeting bool `json:"meeting" bson:"meeting"`
2222
Schedule bool `json:"schedule" bson:"schedule"`

0 commit comments

Comments
 (0)