This commit is contained in:
dancingCycle 2024-01-21 17:30:07 +01:00
parent df4553f5b3
commit e7f5573d58
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ async function get(agencyid = 0, day = '2023-12-27') {
+ schema
+ `.vw_join_gncy_rts_trps_srvcs_pdts WHERE dates like '%${day}%' AND agency_id = '${agencyid}' AND ((timestamp_pgsql >= '${day}' AND timestamp_pgsql < '`
+ tomorrow.toISOString().substring(0, 10)
+ `') OR timestamp_pgsql IS NULL) GROUP BY route_id, route_short_name, agency_id, agency_name ORDER BY timestamp_pgsql, route_short_name ASC;`
+ `') OR timestamp_pgsql IS NULL) GROUP BY route_id, route_short_name, agency_id, agency_name ORDER BY timestamp_pgsql ASC, route_short_name ASC;`
return await db.query(query);
};