fix(json-parsing): wrong itemId
Fixed that the wrong id was checked for the bar
This commit is contained in:
parent
beeb22dc42
commit
2e5993abe7
1 changed files with 1 additions and 1 deletions
|
@ -241,7 +241,7 @@ func GetAttendiesFromPretixJsonWithSeperateSubProducts(pretixEvent *entities.Pre
|
||||||
if event.ItemIdBar == nil {
|
if event.ItemIdBar == nil {
|
||||||
attendie.AttendsBar = false
|
attendie.AttendsBar = false
|
||||||
} else {
|
} else {
|
||||||
indexBar := slices.IndexFunc(order.Positions, func(p entities.Pretix_Position) bool { return p.Item == *event.ItemIdRestaurant })
|
indexBar := slices.IndexFunc(order.Positions, func(p entities.Pretix_Position) bool { return p.Item == *event.ItemIdBar })
|
||||||
if indexBar != -1 {
|
if indexBar != -1 {
|
||||||
attendie.AttendsBar = true
|
attendie.AttendsBar = true
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue