fix: provide required partner id when fetching contingents

This commit is contained in:
Björn Fromme
2024-10-11 16:57:34 +02:00
parent 8a9ea095b3
commit 95478a7caf
@@ -275,7 +275,7 @@
const options = {
...defaultOptions
}
return fetch(`${this.config.myEpApiBaseUrl}/api/mutable-fields/${this.travelData.busproId}`, options)
return fetch(`${this.config.myEpApiBaseUrl}/api/mutable-fields/${this.bookingData.travelId}`, options)
.then(checkStatus)
.then(response => response.json())
.then(data => {
@@ -293,7 +293,7 @@
const options = {
...defaultOptions
}
return fetch(`${this.config.myEpApiBaseUrl}/api/contingents/${this.travelData.busproId}`, options)
return fetch(`${this.config.myEpApiBaseUrl}/api/contingents/${this.bookingData.travelId}/${this.bookingData.partnerId}`, options)
.then(checkStatus)
.then(response => response.json())
.then(data => {
@@ -311,7 +311,7 @@
const options = {
...defaultOptions
}
return fetch(`${this.config.myEpApiBaseUrl}/api/services/${this.travelData.busproId}`, options)
return fetch(`${this.config.myEpApiBaseUrl}/api/services/${this.bookingData.travelId}`, options)
.then(checkStatus)
.then(response => response.json())
.then(data => {