From 29eaca960cb267eae4f0c99bc9046b76552b0c97 Mon Sep 17 00:00:00 2001 From: Gabriel Matei Date: Thu, 16 May 2024 13:12:26 +0300 Subject: [PATCH] remove console.log and fix typos (#40) * remove console.log * ignore .env files * fix typo --- .gitignore | 6 +++++- apps/api/src/endpoints/example/example.controller.ts | 2 +- apps/api/src/main.ts | 2 -- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c15e037..ffa8337 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,8 @@ lerna-debug.log* **/*/config/schema.json **/*/config/config.yaml -**/*/config/schema.yaml \ No newline at end of file +**/*/config/schema.yaml + +# Environment +.env +.env.custom diff --git a/apps/api/src/endpoints/example/example.controller.ts b/apps/api/src/endpoints/example/example.controller.ts index 1ef7df1..c7aa35c 100644 --- a/apps/api/src/endpoints/example/example.controller.ts +++ b/apps/api/src/endpoints/example/example.controller.ts @@ -17,7 +17,7 @@ export class ExampleController { type: Example, isArray: true, }) - @ApiQuery({ name: 'from', description: 'Numer of items to skip for the result set', required: false }) + @ApiQuery({ name: 'from', description: 'Number of items to skip for the result set', required: false }) @ApiQuery({ name: 'size', description: 'Number of items to retrieve', required: false }) @ApiQuery({ name: 'search', description: 'Search by example description', required: false }) async getExamples( diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index e28340d..c372be8 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -43,8 +43,6 @@ async function bootstrap() { const commonConfigService = publicApp.get(CommonConfigService); const metricsService = privateApp.get(MetricsService); - console.log({ apiUrl: commonConfigService.config.urls.api }); - const globalInterceptors: NestInterceptor[] = []; globalInterceptors.push(new LoggingInterceptor(metricsService)); globalInterceptors.push(new RequestCpuTimeInterceptor(metricsService));