1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-15 08:00:05 +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, SASjob: sasJob,
data data
} }
const program = config.appLoc const program = isRelativePath(sasJob)
? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '') ? config.appLoc
? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '')
: sasJob
: sasJob : sasJob
const jobUri = const jobUri =
config.serverType === ServerType.SASViya config.serverType === ServerType.SASViya