1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-16 16:40:06 +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,9 +793,11 @@ export default class SASjs {
SASjob: sasJob, SASjob: sasJob,
data data
} }
const program = config.appLoc const program = isRelativePath(sasJob)
? config.appLoc
? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '') ? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '')
: sasJob : sasJob
: sasJob
const jobUri = const jobUri =
config.serverType === ServerType.SASViya config.serverType === ServerType.SASViya
? await this.getJobUri(sasJob) ? await this.getJobUri(sasJob)