From a6f9bc69b5db951d18ee26831b527b580d14f5cf Mon Sep 17 00:00:00 2001 From: Vladlen Fedosov Date: Thu, 11 Jun 2020 16:41:19 +0300 Subject: [PATCH] fix: Fixed error during route update when using MySQL as a DB Error: select `routes`.`id` as `routeId`, `route_slots`.`id` as `routeSlotId`, * from `routes` inner join `route_slots` on `route_slots`.`routeId` = `routes`.`id` where `routeId` = 4 - ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* from `routes` inner join `route_slots` on `route_slots`.`routeId` = `routes`.` --- registry/server/appRoutes/routes/updateAppRoute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/server/appRoutes/routes/updateAppRoute.ts b/registry/server/appRoutes/routes/updateAppRoute.ts index baab8d18..6005aab1 100644 --- a/registry/server/appRoutes/routes/updateAppRoute.ts +++ b/registry/server/appRoutes/routes/updateAppRoute.ts @@ -67,7 +67,7 @@ const updateAppRoute = async (req: Request, res: Re }); const updatedAppRoute = await db - .select('routes.id as routeId', 'route_slots.id as routeSlotId', '*') + .select('routes.id as routeId', 'route_slots.id as routeSlotId', 'routes.*', 'route_slots.*') .from('routes') .where('routeId', appRouteId) .join('route_slots', {