Skip to content

Commit

Permalink
fix resave notifications bug
Browse files Browse the repository at this point in the history
  • Loading branch information
almostinf committed Dec 14, 2023
1 parent cf4ed1a commit 3250d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/redis/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (connector *DbConnector) filterNotificationsByState(notifications []*moira.
case moira.ResavedNotification:
types.toRemove = append(types.toRemove, notification)
updatedNotification := *notification
updatedNotification.Timestamp = int64(time.Now().Add(connector.notification.ResaveTime).Second())
updatedNotification.Timestamp = time.Now().Add(connector.notification.ResaveTime).Unix()
types.toResave = append(types.toResave, &updatedNotification)

case moira.RemovedNotification:
Expand Down

0 comments on commit 3250d41

Please sign in to comment.