fix(server): do not overlay idx var
This commit is contained in:
parent
aee7cbc526
commit
36230f02e5
1 changed files with 2 additions and 2 deletions
|
|
@ -40,8 +40,8 @@ func (h *APIHandlers) ListTrainings(ctx context.Context, req ListTrainingsReques
|
|||
data := make([]Training, len(trainings))
|
||||
for idx, t := range trainings {
|
||||
pricing := make([]TrainingPrice, len(t.Pricing))
|
||||
for idx, p := range t.Pricing {
|
||||
pricing[idx] = TrainingPrice{
|
||||
for pIdx, p := range t.Pricing {
|
||||
pricing[pIdx] = TrainingPrice{
|
||||
Amount: p.Amount.String(),
|
||||
Currency: p.Currency,
|
||||
Type: TrainingPriceType(p.Type),
|
||||
|
|
|
|||
Reference in a new issue