fix: var naming
This commit is contained in:
parent
344e22235c
commit
c83a3c2e36
1 changed files with 4 additions and 4 deletions
8
main.go
8
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue