Skip to content

Commit

Permalink
ADD: extra cleaning step for url clean up and change debug response o…
Browse files Browse the repository at this point in the history
…bject
  • Loading branch information
JeremiahUy committed Aug 14, 2023
1 parent fcdf86a commit 970fa05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/filters/clean-event-urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const cleanObjectUrls = require('../utils/clean-object-urls');
const cleanEventUrls = (inputEvents) => {
const outputEvents = [];
inputEvents.forEach(event => {
const cloneEvent = {...event};
const cloneEvent = cleanEventUrls({...event});
cloneEvent.event_properties = cleanObjectUrls(event.event_properties || {});
cloneEvent.user_properties = cleanObjectUrls(event.user_properties || {});
outputEvents.push(cloneEvent);
Expand Down
2 changes: 1 addition & 1 deletion src/routes/collect-auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const customHandler = function (request, reply, ingresses) {
reply.send(response.data);
} else if (request.query.debug) {
collectCounter.labels('success_with_debug', appName, teamName).inc();
reply.send(response.data);
reply.send(response);
} else {
collectCounter.labels('success', appName, teamName).inc();
if(request.body.events && request.body.events !== null) {
Expand Down

0 comments on commit 970fa05

Please sign in to comment.