Skip to content

Commit

Permalink
Merge branch 'release/0.0.14'
Browse files Browse the repository at this point in the history
  • Loading branch information
DominusKelvin committed Jul 10, 2023
2 parents 9a287e9 + 8bc534f commit 73fd76f
Show file tree
Hide file tree
Showing 3 changed files with 1,755 additions and 5,787 deletions.
2 changes: 1 addition & 1 deletion Treblle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default class Treblle {
const fieldsToMask = generateFieldsToMask(this.config.get('treblle.additionalFieldsToMask'))
const maskedRequestPayload = maskSensitiveValues(payload, fieldsToMask)
let errors = []
await next()
response.response.on('finish', () => {
const { payload: maskedResponseBody, error: invalidResponseBodyError } = getResponsePayload(
response.lazyBody[0],
Expand Down Expand Up @@ -68,5 +67,6 @@ export default class Treblle {
console.log(error)
}
})
await next()
}
}
Loading

0 comments on commit 73fd76f

Please sign in to comment.