1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-17 09:00:06 +00:00

fix(*): separate job execution code from main SASjs class

This commit is contained in:
Krishna Acondy
2021-01-27 20:30:13 +00:00
parent e0d85f458b
commit d7ecaf5932
18 changed files with 798 additions and 714 deletions

View File

@@ -1,7 +1,7 @@
import { isUrl } from './utils'
import { UploadFile } from './types/UploadFile'
import { ErrorResponse } from './types'
import { RequestClient } from './request/client'
import { RequestClient } from './request/RequestClient'
export class FileUploader {
constructor(
@@ -52,7 +52,7 @@ export class FileUploader {
}
return this.requestClient
.post(uploadUrl, formData, undefined, headers)
.post(uploadUrl, formData, undefined, 'application/json', headers)
.then((res) => res.result)
.catch((err: Error) => {
return Promise.reject(