End all queries with semicolons

This commit is contained in:
Maciej Pędzich 2024-07-27 18:41:25 +02:00
parent 7eba90e505
commit 36265e86b5
Signed by: maciejpedzich
GPG Key ID: CE4A303D84882F0D
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export async function getDriverNames() {
(d.forename + " " + d.surname) AS fullname (d.forename + " " + d.surname) AS fullname
ORDER BY ORDER BY
toUpper(d.surname), toUpper(d.surname),
toUpper(d.forename)` toUpper(d.forename);`
); );
const driverNames = records.map((rec) => rec.get('fullname') as string); const driverNames = records.map((rec) => rec.get('fullname') as string);

View File

@ -23,7 +23,7 @@ export async function getShortestPaths(source: string, dest: string) {
(s.forename + " " + s.surname) = $source (s.forename + " " + s.surname) = $source
AND (d.forename + " " + d.surname) = $dest AND (d.forename + " " + d.surname) = $dest
MATCH path = allShortestPaths((s)-[*..20]-(d)) MATCH path = allShortestPaths((s)-[*..20]-(d))
RETURN path`, RETURN path;`,
{ source, dest } { source, dest }
); );