Skip to content

Commit

Permalink
fix(middleware-logger): remove $metadata from response.output
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Dec 14, 2020
1 parent a7b420d commit ab31287
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/middleware-logger/src/loggerMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ export const loggerMiddleware = () => <Output extends MetadataBearer = MetadataB
});
}

// ToDo: remove $metadata altogether from output and log it in logger.
delete response.output.$metadata;

return response;
};

Expand Down

0 comments on commit ab31287

Please sign in to comment.