From 4a61fb8f7fc665e0145ad86a6979d1a316784fc5 Mon Sep 17 00:00:00 2001 From: sabhas Date: Mon, 19 Jul 2021 13:00:06 +0500 Subject: [PATCH] chore: update variable name from config to ovverrideSasjsConfig --- src/SASjs.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SASjs.ts b/src/SASjs.ts index 6e7df78..ea54489 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -540,17 +540,17 @@ export default class SASjs { * 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 params - request URL parameters. - * @param config - object to override existing config (optional) + * @param overrideSasjsConfig - object to override existing config (optional) */ public uploadFile( sasJob: string, files: UploadFile[], params: any, - config?: any + overrideSasjsConfig?: any ) { - const fileUploader = config + const fileUploader = overrideSasjsConfig ? new FileUploader( - { ...this.sasjsConfig, ...config }, + { ...this.sasjsConfig, ...overrideSasjsConfig }, this.jobsPath, this.requestClient! )