Skip to content

Commit addca01

Browse files
committed
Fix bug when try to get voucher that not exists
1 parent 9cea4bd commit addca01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Class/ElectronicBilling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ module.exports = class ElectronicBilling extends AfipWebService {
188188
};
189189

190190
const result = await this.executeRequest('FECompConsultar', req)
191-
.catch(err => { if (err.code === 602) { return null } else { throw err }});
191+
.catch(err => { if (err.code === 602) { return { ResultGet: null } } else { throw err }});
192192

193193
return result.ResultGet;
194194
}

0 commit comments

Comments
 (0)