Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into allow-empty-locatio…
Browse files Browse the repository at this point in the history
…n-02
  • Loading branch information
pavelbrm committed Oct 9, 2023
2 parents 424d3f7 + 9c86da1 commit bf9ee79
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions services/rewards/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ func (s *Service) GetParameters(ctx context.Context, currency *BaseCurrency) (*P
},
}

//vbatDeadline, ok := ctx.Value(appctx.ParametersVBATDeadlineCTXKey).(time.Time)
//if ok {
// params.VBATDeadline = vbatDeadline
//}

//transition, ok := ctx.Value(appctx.ParametersTransitionCTXKey).(bool)
//if ok {
params.Transition = false
//}
vbatDeadline, ok := ctx.Value(appctx.ParametersVBATDeadlineCTXKey).(time.Time)
if ok {
params.VBATDeadline = &vbatDeadline
}

transition, ok := ctx.Value(appctx.ParametersTransitionCTXKey).(bool)
if ok {
params.Transition = transition
}

return params, nil
}

0 comments on commit bf9ee79

Please sign in to comment.