From 5cc265c54eed3ae6aa75820a884fc5c1c59fa8eb Mon Sep 17 00:00:00 2001 From: Eric Wollesen Date: Wed, 19 Feb 2025 16:52:11 -0700 Subject: [PATCH] fix a receiver name to match others defined on the struct BACK-2559 --- data/store/mongo/mongo_last_communications.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/store/mongo/mongo_last_communications.go b/data/store/mongo/mongo_last_communications.go index dbd7f62c5..92b8b76ac 100644 --- a/data/store/mongo/mongo_last_communications.go +++ b/data/store/mongo/mongo_last_communications.go @@ -57,7 +57,7 @@ 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) @@ -65,7 +65,7 @@ func (d *lastCommunicationsRepo) OverdueCommunications(ctx context.Context) ( "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") }