Skip to content

Commit bb954c9

Browse files
committed
Fix bug at set Web Services in production mode
1 parent d0f639b commit bb954c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Afip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function Afip(options = {}){
9898
if (!options.hasOwnProperty('key')) {options['key'] = 'key';}
9999
if (!options.hasOwnProperty('res_folder')) {options['res_folder'] = __dirname+'/Afip_res/';}
100100
if (!options.hasOwnProperty('ta_folder')) {options['ta_folder'] = __dirname+'/Afip_res/';}
101-
if (!options['production'] !== true) {options['production'] = false;}
101+
if (options['production'] !== true) {options['production'] = false;}
102102

103103
this.options = options;
104104

@@ -231,7 +231,7 @@ Afip.prototype.CreateServiceTA = async function(service) {
231231
const signedTRA = Buffer.from(bytes, "binary").toString("base64");
232232

233233
// SOAP Client options
234-
const soapClientOptions = { disableCache:true };
234+
const soapClientOptions = { disableCache:true, endpoint: this.WSAA_URL };
235235

236236
// Create SOAP client
237237
const soapClient = await soap.createClientAsync(this.WSAA_WSDL, soapClientOptions);

0 commit comments

Comments
 (0)