fix: provide required partner id when fetching contingents
This commit is contained in:
@@ -275,7 +275,7 @@
|
|||||||
const options = {
|
const options = {
|
||||||
...defaultOptions
|
...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(checkStatus)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
@@ -293,7 +293,7 @@
|
|||||||
const options = {
|
const options = {
|
||||||
...defaultOptions
|
...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(checkStatus)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
@@ -311,7 +311,7 @@
|
|||||||
const options = {
|
const options = {
|
||||||
...defaultOptions
|
...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(checkStatus)
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(data => {
|
.then(data => {
|
||||||
|
|||||||
Reference in New Issue
Block a user