Skip to content

Commit

Permalink
fix a receiver name to match others defined on the struct
Browse files Browse the repository at this point in the history
BACK-2559
  • Loading branch information
ewollesen committed Feb 20, 2025
1 parent a9fe904 commit 5cc265c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/store/mongo/mongo_last_communications.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ func (r *lastCommunicationsRepo) filter(lastComm alerts.LastCommunication) map[s
}
}

func (d *lastCommunicationsRepo) OverdueCommunications(ctx context.Context) (
func (r *lastCommunicationsRepo) OverdueCommunications(ctx context.Context) (
[]alerts.LastCommunication, error) {

start := time.Now().Add(-alerts.MinimumNoCommunicationDelay)
selector := bson.M{
"lastReceivedDeviceData": bson.M{"$lte": start},
}
findOptions := options.Find().SetSort(bson.D{{Key: "lastReceivedDeviceData", Value: 1}})
cursor, err := d.Find(ctx, selector, findOptions)
cursor, err := r.Find(ctx, selector, findOptions)
if err != nil {
return nil, errors.Wrapf(err, "Unable to list overdue records")
}
Expand Down

0 comments on commit 5cc265c

Please sign in to comment.