Skip to content

Commit

Permalink
fix notificaiton user model use omitempty for object ids in database
Browse files Browse the repository at this point in the history
  • Loading branch information
konrad2002 committed Nov 19, 2024
1 parent bcf5f50 commit e8eb6c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions service/notification_user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,8 @@ func RegisterNotificationUser(token string, device model.Device, user *model.Use
if err != nil {
if err.Error() == entryNotFoundMessage {
notificationUser := model.NotificationUser{
Identifier: primitive.NewObjectID(),
Token: token,
Device: device,
Token: token,
Device: device,
}

if user != nil {
Expand Down

0 comments on commit e8eb6c9

Please sign in to comment.