Compare commits

..

3 Commits

6 changed files with 2242 additions and 1334 deletions

View File

@ -25,7 +25,7 @@ services:
depends_on:
- db
db:
image: memgraph/memgraph:2.18.1
image: memgraph/memgraph:2.19.0
container_name: sixdegs-db
hostname: sixdegs-db
networks:

File diff suppressed because it is too large Load Diff

View File

@ -5002,3 +5002,4 @@ driverId,teammateId
784,788
826,843
849,851
848,861

1 driverId teammateId
5002 784 788
5003 826 843
5004 849 851
5005 848 861

1926
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -10,14 +10,14 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/node": "^8.2.5",
"astro": "^4.4.14",
"neo4j-driver": "^5.18.0"
"@astrojs/node": "^8.3.3",
"astro": "^4.15.1",
"neo4j-driver": "^5.24.0"
},
"devDependencies": {
"@astrojs/check": "^0.5.6",
"@astrojs/check": "^0.9.3",
"@picocss/pico": "^2.0.6",
"typescript": "^5.4.2",
"typescript": "^5.5.4",
"vis-network": "^9.1.9"
}
}

View File

@ -22,8 +22,14 @@ let graphProps: Awaited<ReturnType<typeof getShortestPaths>> = {
try {
driverNames = await getDriverNames();
if (noEmptyParams && paramsNotEqual)
if (noEmptyParams && paramsNotEqual) {
const timestamp = new Date().toLocaleString('pl');
const clientIp =
Astro.request.headers.get('X-Forwarded-For') || Astro.clientAddress;
console.log(`[${timestamp}] ${clientIp} FROM ${source} TO ${dest}`);
graphProps = await getShortestPaths(source, dest);
}
} catch (error) {
return Astro.redirect('/error');
}