Skip to content

Commit

Permalink
Merge pull request #155 from sasjs/154_hardcoded
Browse files Browse the repository at this point in the history
fix: removing hardcoded input table name in sasjs request
  • Loading branch information
YuryShkoda authored Oct 12, 2020
2 parents 5464677 + 9b18836 commit dab704a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/sasjs-request/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,12 @@ export async function runSasJob(

const accessToken = await getAccessToken(target)

let data = {
fromjs: [dataJson]
}

if (!dataJson) data = null
if (!dataJson) dataJson = null

await sasjs
.request(
sasJobLocation,
data,
dataJson,
configJson,
() => {
displayResult(null, 'Login callback called. Request failed.', null)
Expand Down

0 comments on commit dab704a

Please sign in to comment.