Skip to content

Commit

Permalink
Return only active data sets
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin Krauss committed Apr 26, 2018
1 parent 14e5e3c commit f3adba5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions data/storeDEPRECATED/mongo/mongo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down Expand Up @@ -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",
}
Expand Down

0 comments on commit f3adba5

Please sign in to comment.