Skip to content

Commit

Permalink
refactor(be): remove log interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
krystxf committed Dec 5, 2024
1 parent aa197f4 commit b6ae6f6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 35 deletions.
3 changes: 1 addition & 2 deletions apps/backend/src/modules/departure/departure.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
departureSchema,
type DepartureSchema,
} from "src/modules/departure/schema/departure.schema";
import { LogInterceptor } from "src/modules/logger/log.interceptor";
import {
metroOnlySchema,
vehicleTypeSchema,
Expand All @@ -28,7 +27,7 @@ import { metroOnlyQuery } from "src/swagger/query.swagger";

@ApiTags("departure")
@Controller("departure")
@UseInterceptors(CacheInterceptor, LogInterceptor)
@UseInterceptors(CacheInterceptor)
@CacheTTL(4 * 1000)
export class DepartureController {
constructor(
Expand Down
29 changes: 0 additions & 29 deletions apps/backend/src/modules/logger/log.interceptor.ts

This file was deleted.

3 changes: 1 addition & 2 deletions apps/backend/src/modules/platform/platform.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { z } from "zod";

import { ApiDescription, ApiQueries } from "src/decorators/swagger.decorator";
import { EndpointVersion } from "src/enums/endpoint-version";
import { LogInterceptor } from "src/modules/logger/log.interceptor";
import { PlatformService } from "src/modules/platform/platform.service";
import {
platformWithDistanceSchema,
Expand All @@ -34,7 +33,7 @@ import {

@ApiTags("platform")
@Controller("platform")
@UseInterceptors(CacheInterceptor, LogInterceptor)
@UseInterceptors(CacheInterceptor)
export class PlatformController {
constructor(private readonly platformService: PlatformService) {}

Expand Down
3 changes: 1 addition & 2 deletions apps/backend/src/modules/stop/stop.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ import {
import { ApiParam, ApiQuery, ApiTags } from "@nestjs/swagger";

import { EndpointVersion } from "src/enums/endpoint-version";
import { LogInterceptor } from "src/modules/logger/log.interceptor";
import { StopService } from "src/modules/stop/stop.service";
import { metroOnlyQuery } from "src/swagger/query.swagger";

@ApiTags("stop")
@Controller("stop")
@UseInterceptors(CacheInterceptor, LogInterceptor)
@UseInterceptors(CacheInterceptor)
export class StopController {
constructor(private readonly stopService: StopService) {}

Expand Down

0 comments on commit b6ae6f6

Please sign in to comment.