Skip to content

Commit

Permalink
🐞 Fixed bug resulting in duplicated bus services in bus stop objects
Browse files Browse the repository at this point in the history
  • Loading branch information
TechSupportz committed Nov 17, 2023
1 parent d247585 commit 766eb4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/generateJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export const generateJSON = createRouteSpec({
console.log("Restarting server...")
process.exit()
}, 5000)

} catch (e) {
ctx.status = 500
ctx.body = "Internal Server Error"
Expand Down Expand Up @@ -90,7 +89,7 @@ async function transformBusStops(
roadName: v.RoadName,
latitude: v.Latitude,
longitude: v.Longitude,
services,
services: [...new Set(services)],
}

tempBusStops.push(busStop)
Expand Down

0 comments on commit 766eb4c

Please sign in to comment.