From f3adba543215d53752a90f4d3ec4d068f7c0e611 Mon Sep 17 00:00:00 2001 From: Darin Krauss Date: Wed, 25 Apr 2018 12:44:01 -0700 Subject: [PATCH] Return only active data sets --- CHANGELOG.md | 1 + data/storeDEPRECATED/mongo/mongo.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c9ee5fec..c52d902cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## HEAD +* Return only active data sets * Return on validation or normalization error after sending response * Fix Dexcom API unexpected data; temporarily modify incoming data to expected values * Fix Dexcom API unknown device model failure; allow unknown device model diff --git a/data/storeDEPRECATED/mongo/mongo.go b/data/storeDEPRECATED/mongo/mongo.go index c85dd606c..d28e13bd6 100644 --- a/data/storeDEPRECATED/mongo/mongo.go +++ b/data/storeDEPRECATED/mongo/mongo.go @@ -69,6 +69,7 @@ func (d *DataSession) GetDatasetsForUserByID(ctx context.Context, userID string, var datasets []*upload.Upload selector := bson.M{ + "_active": true, "_userId": userID, "type": "upload", } @@ -624,6 +625,7 @@ func (d *DataSession) ListUserDataSets(ctx context.Context, userID string, filte dataSets := data.DataSets{} selector := bson.M{ + "_active": true, "_userId": userID, "type": "upload", }