fix: provide required partner id when fetching contingents
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user