From 2d12ee3d0e494b1e8c20bb36cbf351f29a98ffef Mon Sep 17 00:00:00 2001 From: Noah Spannbauer Date: Sun, 1 Dec 2024 20:05:45 -0600 Subject: [PATCH] api no longer fails when no pilots or logbook entries --- api/src/app.module.ts | 2 -- api/src/app.service.ts | 2 +- api/src/main.ts | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/api/src/app.module.ts b/api/src/app.module.ts index f54fa74..62d8ec9 100644 --- a/api/src/app.module.ts +++ b/api/src/app.module.ts @@ -14,8 +14,6 @@ import { PilotModule } from './pilot/pilot.module'; import { APP_FILTER } from '@nestjs/core'; import { HttpExceptionFilter } from './filters/http-exception.filter'; -console.log('app: ' + process.env); - @Module({ imports: [ ConfigModule.forRoot(), diff --git a/api/src/app.service.ts b/api/src/app.service.ts index b0ae395..e9deb71 100644 --- a/api/src/app.service.ts +++ b/api/src/app.service.ts @@ -6,7 +6,7 @@ export class AppService { constructor(private readonly msGraphService: MsGraphService) {} getHello(): string { - return 'Hello World!'; + return process.env.toString(); } async getPersonSearchResults( diff --git a/api/src/main.ts b/api/src/main.ts index da070ff..581cea1 100644 --- a/api/src/main.ts +++ b/api/src/main.ts @@ -8,8 +8,6 @@ async function bootstrap() { const httpService = new HttpService(); const app = await NestFactory.create(AppModule); - console.log('main: ' + process.env); - app.setGlobalPrefix('api'); app.useGlobalFilters(new HttpExceptionFilter()); httpService.axiosRef.interceptors.response.use(