Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fix gql airportWeather
Browse files Browse the repository at this point in the history
  • Loading branch information
anduong96 committed Nov 28, 2023
1 parent 00cc629 commit aa5e1a5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion src/@generated/graphql/models/AirportWeather.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Field, ObjectType, ID, Int } from 'type-graphql';
import { GQL_Airport } from './Airport';

@ObjectType('AirportWeather')
export class GQL_AirportWeather {
Expand Down
13 changes: 1 addition & 12 deletions src/services/airport.weather/get.airport.weather.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,23 +113,12 @@ export async function getAirportWeather(
const { airportIata, date, hour, month, year } = params;

const airportWeather = await prisma.airportWeather.findFirst({
select: {
include: {
Airport: {
select: {
timezone: true,
},
},
airportIata: true,
date: true,
hour: true,
iconURL: true,
month: true,
precipitationAmountMillimeter: true,
status: true,
updatedAt: true,
windFromDirectionDegrees: true,
windSpeedMeterPerSecond: true,
year: true,
},
where: {
airportIata,
Expand Down

0 comments on commit aa5e1a5

Please sign in to comment.