mirror of
https://github.com/sasjs/adapter.git
synced 2026-04-15 02:13:13 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5bd641b843 | ||
|
|
539fe5f4ed |
@@ -97,12 +97,10 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
apiUrl = apiUrl.replace('_program=', '__program=')
|
apiUrl = apiUrl.replace('_program=', '__program=')
|
||||||
}
|
}
|
||||||
|
|
||||||
// if context name exists and is not blank string
|
// Append context name to URL if provided and non-empty
|
||||||
// then add _contextname variable in apiUrl
|
apiUrl += config.contextName?.trim()
|
||||||
apiUrl +=
|
? `&_contextname=${encodeURIComponent(config.contextName)}`
|
||||||
config.contextName && !/\s/.test(config.contextName)
|
: ''
|
||||||
? `&_contextname=${config.contextName}`
|
|
||||||
: ''
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let requestParams = {
|
let requestParams = {
|
||||||
|
|||||||
Reference in New Issue
Block a user