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}
|
timeRtUpdatePg := pgtype.Timestamptz{Time: timeRtUpdate, Valid: true}
|
||||||
|
|
||||||
// Execute Query
|
// Execute Query
|
||||||
stations, err := queries.GetDeparturesById(ctx, bahndb_rest.GetDeparturesByIdParams{Stop: stopIdPg,
|
stations, err := queries.GetDeparturesById(ctx, bahndb_rest.GetDeparturesByIdParams{StopID: stopIdPg,
|
||||||
Departure: timeFromPg,
|
DepartureFrom: timeFromPg,
|
||||||
Departure_2: timeToPg,
|
DepartureTo: timeToPg,
|
||||||
Realtimedataupdatedat: timeRtUpdatePg})
|
RtUpdatedAt: timeRtUpdatePg})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
w.WriteHeader(500)
|
w.WriteHeader(500)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue