1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-04 19:20:05 +00:00

fix(job-execution): throw error if job name is empty

This commit is contained in:
Krishna Acondy
2021-02-05 08:23:25 +00:00
parent 613cc6b9ef
commit ba1ed5e732

View File

@@ -136,6 +136,10 @@ export class WebJobExecutor extends BaseJobExecutor {
folderPath = folderPathParts.join('/')
}
if (!jobName) {
throw new Error('Job name is empty, null or undefined.')
}
const locJobs = await this.sasViyaApiClient.getJobsInFolder(folderPath)
if (locJobs) {
const job = locJobs.find(