Skip to content

Commit 7b0853a

Browse files
committed
fix: incorrect contract breaking error
1 parent d7f54e1 commit 7b0853a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/logger/http-inspector-inbound.middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const configureHttpInspectorInbound = () => (app: INestApplication) => {
7373
const configService = app.get(ConfigService);
7474
const httpInspection = configService.get('INSPECT_HTTP_TRAFFIC', 'all');
7575
if (!['all', 'inbound'].includes(httpInspection)) {
76-
return;
76+
return app;
7777
}
7878

7979
const inspector = new HttpInspectorInboundMiddleware();

src/logger/http-inspector-outbound.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const configureHttpInspectorOutbound = () => (app: INestApplication) => {
7777
const configService = app.get(ConfigService);
7878
const httpInspection = configService.get('INSPECT_HTTP_TRAFFIC', 'all');
7979
if (!['all', 'outbound'].includes(httpInspection)) {
80-
return;
80+
return app;
8181
}
8282

8383
const logger = new Logger('OutboundHTTPInspection');

0 commit comments

Comments
 (0)