|
|
@@ -284,15 +284,17 @@ final class BaseFetchGlucoseManager: FetchGlucoseManager, Injectable {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- let backfillGlucose = newGlucose.filter { $0.dateString <= syncDate }
|
|
|
- if backfillGlucose.isNotEmpty {
|
|
|
- debug(.deviceManager, "Backfilling glucose...")
|
|
|
- do {
|
|
|
- try await glucoseStorage.storeGlucose(backfillGlucose)
|
|
|
- } catch {
|
|
|
- debug(.deviceManager, "Unable to backfill glucose: \(error)")
|
|
|
- }
|
|
|
- }
|
|
|
+ // TODO: Fix backfill logic https://github.com/nightscout/Trio/issues/737
|
|
|
+ /*
|
|
|
+ let backfillGlucose = newGlucose.filter { $0.dateString <= syncDate }
|
|
|
+ if backfillGlucose.isNotEmpty {
|
|
|
+ debug(.deviceManager, "Backfilling glucose...")
|
|
|
+ do {
|
|
|
+ try await glucoseStorage.storeGlucose(backfillGlucose)
|
|
|
+ } catch {
|
|
|
+ debug(.deviceManager, "Unable to backfill glucose: \(error)")
|
|
|
+ }
|
|
|
+ }*/
|
|
|
|
|
|
filteredByDate = newGlucose.filter { $0.dateString > syncDate }
|
|
|
filtered = glucoseStorage.filterTooFrequentGlucose(filteredByDate, at: syncDate)
|