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", }