Skip to content

Commit 0c18f5a

Browse files
committed
Fix bug with wsdl path when change res_folder option
1 parent 7bfb002 commit 0c18f5a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Afip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function Afip(options = {}){
9999
this.TA_FOLDER = options['ta_folder'];
100100
this.CERT = path.resolve(this.RES_FOLDER, options['cert']);
101101
this.PRIVATEKEY = path.resolve(this.RES_FOLDER, options['key']);
102-
this.WSAA_WSDL = this.RES_FOLDER+'wsaa.wsdl';
102+
this.WSAA_WSDL = path.resolve(__dirname, 'Afip_res/', 'wsaa.wsdl');
103103

104104
if (options['production']) {
105105
this.WSAA_URL = 'https://wsaa.afip.gov.ar/ws/services/LoginCms';

src/Class/AfipWebService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ module.exports = class AfipWebService {
5454
this.afip = webServiceOptions.afip;
5555

5656
if (this.afip.options['production']) {
57-
this.WSDL = path.resolve(this.afip.RES_FOLDER, this.WSDL);
57+
this.WSDL = path.resolve(__dirname, '../Afip_res', this.WSDL);
5858
}
5959
else{
60-
this.WSDL = path.resolve(this.afip.RES_FOLDER, this.WSDL_TEST);
60+
this.WSDL = path.resolve(__dirname, '../Afip_res', this.WSDL_TEST);
6161
this.URL = this.URL_TEST;
6262
}
6363
}

0 commit comments

Comments
 (0)