Skip to content

Commit

Permalink
UNDO: changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremiahUy committed Aug 14, 2023
1 parent fb51986 commit 79bd1fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/routes/collect-auto.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +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();
let data = {}
if(response && response.data){
data = {...response.data}
}
reply.send({...data, extraMetaData: {...response}});
reply.send(response.data);
} else {
collectCounter.labels('success', appName, teamName).inc();
if(request.body.events && request.body.events !== null) {
Expand Down

0 comments on commit 79bd1fd

Please sign in to comment.