Skip to content

Commit

Permalink
Fix: Missing check if finalReading exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoernert committed Feb 13, 2024
1 parent ed4b916 commit 99adbe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion framework/services/debit.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ module.exports = {
delete res[i].id;
if(typeof ctx.params.jwt == 'undefined') {
delete res[i].jwt;
delete res[i].finalReading.clearingJWT;
if(typeof res[i].finalReading !== 'undefined') {
delete res[i].finalReading.clearingJWT;
}
}
}
if((typeof ctx.params.format !== 'undefined') && (ctx.params.format == 'csv')) {
Expand Down

0 comments on commit 99adbe9

Please sign in to comment.