Skip to content

Commit

Permalink
All pump event ids must be marked as processed in upload callback (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 authored Jan 7, 2019
1 parent ae68b7b commit 1746a75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Loop/Extensions/NightscoutUploader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ extension NightscoutUploader {
var treatments = [NightscoutTreatment]()

for event in events {

objectIDURLs.append(event.objectIDURL)

guard let treatment = event.treatment(enteredBy: source) else {
continue
}

objectIDURLs.append(event.objectIDURL)
treatments.append(treatment)
}

Expand Down

0 comments on commit 1746a75

Please sign in to comment.