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

fix(job-execution): support relative paths with web approach

This commit is contained in:
Krishna Acondy
2020-09-21 19:45:23 +01:00
parent 4711d0510e
commit d723150b6d

View File

@@ -793,8 +793,10 @@ export default class SASjs {
SASjob: sasJob,
data
}
const program = config.appLoc
? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '')
const program = isRelativePath(sasJob)
? config.appLoc
? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '')
: sasJob
: sasJob
const jobUri =
config.serverType === ServerType.SASViya