forked from VinokurovVE/tests
Types cleanup; type safe refactoring; Remove unused clickhouse service; ems: GET all lines; Roles types;
This commit is contained in:
@ -51,10 +51,7 @@ router.get('/lines/all', async (req: Request, res: Response) => {
|
||||
const result = await tediousQuery(
|
||||
`
|
||||
SELECT * FROM ${GisDB}..lines l
|
||||
JOIN ${GeneralDB}..vObjects o ON l.object_id = o.object_id WHERE o.id_city = ${city_id} AND l.year = ${year}
|
||||
ORDER BY l.year
|
||||
OFFSET ${Number(offset) || 0} ROWS
|
||||
FETCH NEXT ${Number(limit) || 10} ROWS ONLY;
|
||||
JOIN ${GeneralDB}..vObjects o ON l.object_id = o.object_id WHERE o.id_city = ${city_id} AND l.year = ${year};
|
||||
`
|
||||
)
|
||||
res.status(200).json(result)
|
||||
|
Reference in New Issue
Block a user