mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-17 00:50:05 +00:00
chore: update variable name from config to ovverrideSasjsConfig
This commit is contained in:
@@ -540,17 +540,17 @@ export default class SASjs {
|
|||||||
* Process). Is prepended at runtime with the value of `appLoc`.
|
* Process). Is prepended at runtime with the value of `appLoc`.
|
||||||
* @param files - array of files to be uploaded, including File object and file name.
|
* @param files - array of files to be uploaded, including File object and file name.
|
||||||
* @param params - request URL parameters.
|
* @param params - request URL parameters.
|
||||||
* @param config - object to override existing config (optional)
|
* @param overrideSasjsConfig - object to override existing config (optional)
|
||||||
*/
|
*/
|
||||||
public uploadFile(
|
public uploadFile(
|
||||||
sasJob: string,
|
sasJob: string,
|
||||||
files: UploadFile[],
|
files: UploadFile[],
|
||||||
params: any,
|
params: any,
|
||||||
config?: any
|
overrideSasjsConfig?: any
|
||||||
) {
|
) {
|
||||||
const fileUploader = config
|
const fileUploader = overrideSasjsConfig
|
||||||
? new FileUploader(
|
? new FileUploader(
|
||||||
{ ...this.sasjsConfig, ...config },
|
{ ...this.sasjsConfig, ...overrideSasjsConfig },
|
||||||
this.jobsPath,
|
this.jobsPath,
|
||||||
this.requestClient!
|
this.requestClient!
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user