1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-16 08:30:07 +00:00

fix: file upload on SASJS SERVER

Also fixed appendRequest when debug on while on SASJS SERVER
This commit is contained in:
2022-03-25 18:05:47 +01:00
parent 256e4ef314
commit 1d1ef7179e
4 changed files with 36 additions and 8 deletions

View File

@@ -99,7 +99,17 @@ export class FileUploader extends BaseJobExecutor {
? parseWeboutResponse(res.result, uploadUrl)
: res.result
break
case ServerType.Sasjs:
if (typeof res.result._webout === 'object') {
jsonResponse = res.result._webout
} else {
const webout = parseWeboutResponse(res.result._webout, uploadUrl)
jsonResponse = getValidJson(webout)
}
break
}
} else if (this.serverType === ServerType.Sasjs) {
jsonResponse = getValidJson(res.result._webout)
} else {
jsonResponse =
typeof res.result === 'string'