introduce the database and controller connections for all inbounds

This commit is contained in:
Sven Czarnian
2022-10-23 16:58:00 +02:00
부모 7a41dd0fb2
커밋 f69e365623
19개의 변경된 파일849개의 추가작업 그리고 4개의 파일을 삭제

파일 보기

@@ -25,9 +25,9 @@ export class AirportService {
}
async airport(icao: string): Promise<Airport> {
return this.airportModel.find({ icao }).then((response) => {
if (!response || response.length !== 1) return null;
return response[0];
return this.airportModel.findOne({ icao }).then((response) => {
if (!response) return null;
return response;
});
}