Skip to content

Commit 5cc265c

Browse files
committed
fix a receiver name to match others defined on the struct
BACK-2559
1 parent a9fe904 commit 5cc265c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/store/mongo/mongo_last_communications.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ func (r *lastCommunicationsRepo) filter(lastComm alerts.LastCommunication) map[s
5757
}
5858
}
5959

60-
func (d *lastCommunicationsRepo) OverdueCommunications(ctx context.Context) (
60+
func (r *lastCommunicationsRepo) OverdueCommunications(ctx context.Context) (
6161
[]alerts.LastCommunication, error) {
6262

6363
start := time.Now().Add(-alerts.MinimumNoCommunicationDelay)
6464
selector := bson.M{
6565
"lastReceivedDeviceData": bson.M{"$lte": start},
6666
}
6767
findOptions := options.Find().SetSort(bson.D{{Key: "lastReceivedDeviceData", Value: 1}})
68-
cursor, err := d.Find(ctx, selector, findOptions)
68+
cursor, err := r.Find(ctx, selector, findOptions)
6969
if err != nil {
7070
return nil, errors.Wrapf(err, "Unable to list overdue records")
7171
}

0 commit comments

Comments
 (0)