Skip to content

Commit

Permalink
Support additional Medtronic devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Darin Krauss committed Sep 28, 2017
1 parent 2a021d8 commit d8611b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/deduplicator/hash_deactivate_old.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const _HashDeactivateOldDeduplicatorName = "org.tidepool.hash-deactivate-old"
const _HashDeactivateOldDeduplicatorVersion = "1.1.0"

var _HashDeactivateOldExpectedDeviceManufacturerModels = map[string][]string{
"Medtronic": {"523", "723", "551", "751", "554", "754"},
"Medtronic": {"523", "723", "551", "751", "554", "754", "1510", "1511", "1512", "1710", "1711", "1712", "1715", "1780"},
"LifeScan": {"OneTouch Ultra 2", "OneTouch UltraMini"},
"Abbott": {"FreeStyle Libre"},
}
Expand Down
6 changes: 3 additions & 3 deletions dataservices/service/context/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ func WithContext(metricServicesClient metricservicesClient.Client, userServicesC
dataFactory data.Factory, dataDeduplicatorFactory deduplicator.Factory,
dataStore dataStore.Store, taskStore taskStore.Store, handler service.HandlerFunc) rest.HandlerFunc {
return func(response rest.ResponseWriter, request *rest.Request) {
context, err := context.NewStandard(response, request)
ctx, err := context.NewStandard(response, request)
if err != nil {
context.RespondWithInternalServerFailure("Unable to create new context for request", err)
ctx.RespondWithInternalServerFailure("Unable to create new context for request", err)
return
}

standard := &Standard{
Context: context,
Context: ctx,
metricServicesClient: metricServicesClient,
userServicesClient: userServicesClient,
dataFactory: dataFactory,
Expand Down

0 comments on commit d8611b8

Please sign in to comment.