Skip to content

Commit

Permalink
Merge pull request #409 from nightscout/wip/with-bg-only
Browse files Browse the repository at this point in the history
if there isn't a glucose value, don't store the units
  • Loading branch information
jasoncalabrese committed Feb 12, 2015
2 parents 015aaca + a6182b5 commit 452365c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/treatments.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function storage (collection, storage, pushover) {
if (!obj.glucose) {
delete obj.glucose;
delete obj.glucoseType;
delete obj.units;
}

api( ).insert(obj, function (err, doc) {
Expand Down

0 comments on commit 452365c

Please sign in to comment.