mts-booking-library 1.2.15 → 1.2.16
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/booking/booking.js +3 -2
- package/package.json +1 -1
package/lib/booking/booking.js
CHANGED
@@ -231,8 +231,9 @@ var Booking = /** @class */ (function () {
|
|
231
231
|
}
|
232
232
|
_e.label = 5;
|
233
233
|
case 5:
|
234
|
-
url = "".concat(this.config.API_ENDPOINT, "/sellers/").concat(this.sellerId, "/gateways?");
|
235
|
-
|
234
|
+
url = "".concat(this.config.API_ENDPOINT, "/sellers/").concat(this.sellerId, "/gateways?language=").concat(this.language);
|
235
|
+
// We use directly makeGet because we don't want to add sellerId to the query string (it is already present in the url)
|
236
|
+
return [2 /*return*/, (0, apiCall_1.makeGet)(url).then(function (response) {
|
236
237
|
return (0, ErrorResponse_1.objectIsMTSErrorResponse)(response) ? response : response;
|
237
238
|
})];
|
238
239
|
}
|