fix: UPDATE route routes-by-agency-id

This commit is contained in:
dancingCycle 2023-11-24 15:09:00 +01:00
parent f3a5a31240
commit cdfa348c59
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ const db = require('./db');
async function get(agencyId = 0) {
const schema = process.env.DB_SCHEMA || 'schema';
const query = `SELECT routes.route_id FROM ` + schema + `.routes WHERE agency_id='${agencyId}';`;
const query = `SELECT routes.route_id, routes.route_short_name, routes.route_long_name FROM ` + schema + `.routes WHERE agency_id='${agencyId}';`;
return await db.query(query);
};