diff --git a/main.go b/main.go index 2235376..24acbec 100644 --- a/main.go +++ b/main.go @@ -305,10 +305,10 @@ func (h *stopDeparturesHandler) ServeHTTP(w http.ResponseWriter, r *http.Request timeRtUpdatePg := pgtype.Timestamptz{Time: timeRtUpdate, Valid: true} // Execute Query - stations, err := queries.GetDeparturesById(ctx, bahndb_rest.GetDeparturesByIdParams{Stop: stopIdPg, - Departure: timeFromPg, - Departure_2: timeToPg, - Realtimedataupdatedat: timeRtUpdatePg}) + stations, err := queries.GetDeparturesById(ctx, bahndb_rest.GetDeparturesByIdParams{StopID: stopIdPg, + DepartureFrom: timeFromPg, + DepartureTo: timeToPg, + RtUpdatedAt: timeRtUpdatePg}) if err != nil { w.WriteHeader(500)