Skip to content

Commit

Permalink
Log dates correctly in ctx.request.body (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
klesgidis authored Dec 7, 2023
1 parent d896436 commit 99e5f19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/transformers/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const { extractHeaders, truncateText } = require('../utils');
const mapValuesDeep = (v, callback) => {
if (v && Array.isArray(v)) {
return v.map(vv => mapValuesDeep(vv, callback));
} else if (v instanceof Date) {
return v;
} else if (isObject(v)) {
return mapValues(v, vv => mapValuesDeep(vv, callback));
} else {
Expand Down

0 comments on commit 99e5f19

Please sign in to comment.