Skip to content

Commit

Permalink
feat: respones interceptor 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
jcy0308 committed Sep 2, 2024
1 parent b0894b1 commit 0334e02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class ResponseInterceptor implements NestInterceptor {
.pipe(defaultIfEmpty(null))
.pipe(
map((result) => {
if (excludePaths.includes(req.url)) {
if (!excludePaths.includes(req.url)) {
return result;
}
})
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ async function bootstrap() {
},
})
);
app.useGlobalInterceptors(new ResponseInterceptor());
app.useGlobalInterceptors(new PrometheusInterceptor());
app.enableCors({
origin: "*",
Expand Down

0 comments on commit 0334e02

Please sign in to comment.