Skip to content

Commit 8e767c2

Browse files
committed
Ignore error when unmarshalling notification data
1 parent d1771c7 commit 8e767c2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

db/user_notifications.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,8 @@ func (n *UserNotification) AfterFind(*gorm.DB) error {
5959
}
6060

6161
n.TimestampJSON = time.UnixMilli(n.Timestamp)
62-
63-
if err := json.Unmarshal([]byte(n.RawData), &n.Data); err != nil {
64-
return err
65-
}
66-
62+
_ = json.Unmarshal([]byte(n.RawData), &n.Data)
63+
6764
return nil
6865
}
6966

0 commit comments

Comments
 (0)