fix: var naming

This commit is contained in:
etwas 2025-04-15 21:48:18 +02:00
parent 344e22235c
commit c83a3c2e36
Signed by: etwas
SSH key fingerprint: SHA256:bHhIeAdn/2k9jmOs6+u6ox98VYmoHUN3HfnpV2w8Ws0

View file

@ -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)