feat(api): adjust route stops-not-dhid

This commit is contained in:
dancingCycle 2023-05-12 15:52:37 +02:00
parent ec32dd19cf
commit 78f5dd204e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ async function get(oset = 1,limit = 100) {
debug('stops-not-dhid-oset-limit start...');
const offset = helper.getOffset(oset, limit);
const rows = await db.query(
`SELECT * FROM analysis.vw_stops_not_dhid OFFSET $1 LIMIT $2;`,
`SELECT stop_id,stop_code,stop_name,stop_desc,stop_lat,stop_lon,zone_id,stop_url,stop_street,stop_city,stop_region,stop_postcode,stop_country,stop_timezone,direction,position,parent_station,location_type,vehicle_type,level_id,platform_code FROM analysis.vw_stops_not_dhid OFFSET $1 LIMIT $2;`,
[offset, limit]
);
const data = helper.emptyOrRows(rows);