Skip to content

Commit

Permalink
Merge pull request #97 from Quaver/notifs-all-read
Browse files Browse the repository at this point in the history
Ignore error when unmarshalling notification data
  • Loading branch information
Swan authored Oct 10, 2024
2 parents 9c91250 + 8e767c2 commit 3b36032
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions db/user_notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,8 @@ func (n *UserNotification) AfterFind(*gorm.DB) error {
}

n.TimestampJSON = time.UnixMilli(n.Timestamp)

if err := json.Unmarshal([]byte(n.RawData), &n.Data); err != nil {
return err
}

_ = json.Unmarshal([]byte(n.RawData), &n.Data)

Check failure on line 63 in db/user_notifications.go

View workflow job for this annotation

GitHub Actions / build

invalid character U+2260 '≠' in identifier

Check failure on line 63 in db/user_notifications.go

View workflow job for this annotation

GitHub Actions / build

undefined: ≠
return nil
}

Expand Down

0 comments on commit 3b36032

Please sign in to comment.