1
0
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:
2021-07-19 13:00:06 +05:00
parent 5347aeba09
commit 4a61fb8f7f

View File

@@ -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!
) )