Feature/33 api fails when no pilots or logbook entries #35
@@ -14,8 +14,6 @@ import { PilotModule } from './pilot/pilot.module';
|
|||||||
import { APP_FILTER } from '@nestjs/core';
|
import { APP_FILTER } from '@nestjs/core';
|
||||||
import { HttpExceptionFilter } from './filters/http-exception.filter';
|
import { HttpExceptionFilter } from './filters/http-exception.filter';
|
||||||
|
|
||||||
console.log('app: ' + process.env);
|
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
ConfigModule.forRoot(),
|
ConfigModule.forRoot(),
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export class AppService {
|
|||||||
constructor(private readonly msGraphService: MsGraphService) {}
|
constructor(private readonly msGraphService: MsGraphService) {}
|
||||||
|
|
||||||
getHello(): string {
|
getHello(): string {
|
||||||
return 'Hello World!';
|
return process.env.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
async getPersonSearchResults(
|
async getPersonSearchResults(
|
||||||
|
|||||||
@@ -8,8 +8,6 @@ async function bootstrap() {
|
|||||||
const httpService = new HttpService();
|
const httpService = new HttpService();
|
||||||
const app = await NestFactory.create(AppModule);
|
const app = await NestFactory.create(AppModule);
|
||||||
|
|
||||||
console.log('main: ' + process.env);
|
|
||||||
|
|
||||||
app.setGlobalPrefix('api');
|
app.setGlobalPrefix('api');
|
||||||
app.useGlobalFilters(new HttpExceptionFilter());
|
app.useGlobalFilters(new HttpExceptionFilter());
|
||||||
httpService.axiosRef.interceptors.response.use(
|
httpService.axiosRef.interceptors.response.use(
|
||||||
|
|||||||
Reference in New Issue
Block a user