|
|
@ -22,9 +22,8 @@ func Get(uuid []byte, datatype, slot int) (any, error) {
|
|
|
|
return nil, fmt.Errorf("failed to fetch compensations: %s", err)
|
|
|
|
return nil, fmt.Errorf("failed to fetch compensations: %s", err)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
for k, v := range compensations {
|
|
|
|
for compensationType, amount := range compensations {
|
|
|
|
typeKey := strconv.Itoa(k)
|
|
|
|
system.VoucherCounts[strconv.Itoa(compensationType)] += amount
|
|
|
|
system.VoucherCounts[typeKey] += v
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return system, nil
|
|
|
|
return system, nil
|
|
|
|