1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

fix: viya with web approach adding 2 underscores in front of program param

This commit is contained in:
2021-07-27 14:05:34 +02:00
parent 52e95e3455
commit ded7990096
2 changed files with 8 additions and 4 deletions

View File

@@ -2005,15 +2005,14 @@
},
"@sasjs/adapter": {
"version": "file:../build/sasjs-adapter-5.0.0.tgz",
"integrity": "sha512-2ZSpzVKU+BFBoXryxDlAg1Rt9icqpFZ/VfP81t0DXr5uH0crbEuraFfQsHqi0pmz+0r0pj4zDSIUGSKle90mZg==",
"integrity": "sha512-yVehhjZU3gvOokbZUivNPL4byc+6VOT39Xt2RNB2i4Ja8q/4ziImSJiaGO9kbw4umotXqegM6BDVOhnLXATq6g==",
"requires": {
"@sasjs/utils": "^2.23.2",
"@sasjs/utils": "^2.27.1",
"axios": "^0.21.1",
"axios-cookiejar-support": "^1.0.1",
"form-data": "^4.0.0",
"https": "^1.0.0",
"tough-cookie": "^4.0.0",
"url": "^0.11.0"
"tough-cookie": "^4.0.0"
},
"dependencies": {
"form-data": {

View File

@@ -54,6 +54,11 @@ export class WebJobExecutor extends BaseJobExecutor {
apiUrl += jobUri.length > 0 ? '&_job=' + jobUri : ''
if (jobUri.length > 0) {
apiUrl += '&_job=' + jobUri
apiUrl = apiUrl.replace('_program=', '__program=')
}
apiUrl += config.contextName ? `&_contextname=${config.contextName}` : ''
}