Skip to content

Commit

Permalink
fix: Fixed error during route update when using MySQL as a DB
Browse files Browse the repository at this point in the history
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`.`
  • Loading branch information
StyleT committed Jun 11, 2020
1 parent 008fb34 commit a6f9bc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/server/appRoutes/routes/updateAppRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const updateAppRoute = async (req: Request<UpdateAppRouteRequestParams>, 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', {
Expand Down

0 comments on commit a6f9bc6

Please sign in to comment.