refactor
This commit is contained in:
parent
df4553f5b3
commit
e7f5573d58
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue