diff --git a/src/db/getDriverNames.ts b/src/db/getDriverNames.ts index 4fc6d2f..eea927a 100644 --- a/src/db/getDriverNames.ts +++ b/src/db/getDriverNames.ts @@ -7,7 +7,7 @@ export async function getDriverNames() { (d.forename + " " + d.surname) AS fullname ORDER BY toUpper(d.surname), - toUpper(d.forename)` + toUpper(d.forename);` ); const driverNames = records.map((rec) => rec.get('fullname') as string); diff --git a/src/db/getShortestPaths.ts b/src/db/getShortestPaths.ts index 72d6267..a852008 100644 --- a/src/db/getShortestPaths.ts +++ b/src/db/getShortestPaths.ts @@ -23,7 +23,7 @@ export async function getShortestPaths(source: string, dest: string) { (s.forename + " " + s.surname) = $source AND (d.forename + " " + d.surname) = $dest MATCH path = allShortestPaths((s)-[*..20]-(d)) - RETURN path`, + RETURN path;`, { source, dest } );