1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 18:50:05 +00:00

fix: jobViaWeb config override

This commit is contained in:
Mihajlo Medjedovic
2020-08-23 17:04:39 +02:00
parent 0c6409e402
commit 422c2a1fd5

View File

@@ -730,7 +730,7 @@ export default class SASjs {
}`;
const requestParams = {
...this.getRequestParamsWeb(),
...this.getRequestParamsWeb(config),
};
const formData = new FormData();
@@ -941,14 +941,14 @@ export default class SASjs {
this.sasjsWaitingRequests = [];
}
private getRequestParamsWeb(): any {
private getRequestParamsWeb(config: any): any {
const requestParams: any = {};
if (this.csrfTokenWeb) {
requestParams["_csrf"] = this.csrfTokenWeb.value;
}
if (this.sasjsConfig.debug) {
if (config.debug) {
requestParams["_omittextlog"] = "false";
requestParams["_omitsessionresults"] = "false";