Compare commits

..

No commits in common. "4add5754b68df11f81c7428b79e29aeff4dc0e71" and "98711d228b81cdcf086d681778e0b50c28560796" have entirely different histories.

6 changed files with 1334 additions and 2242 deletions

View File

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

File diff suppressed because it is too large Load Diff

View File

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

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

1924
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.3.3",
"astro": "^4.15.1",
"neo4j-driver": "^5.24.0"
"@astrojs/node": "^8.2.5",
"astro": "^4.4.14",
"neo4j-driver": "^5.18.0"
},
"devDependencies": {
"@astrojs/check": "^0.9.3",
"@astrojs/check": "^0.5.6",
"@picocss/pico": "^2.0.6",
"typescript": "^5.5.4",
"typescript": "^5.4.2",
"vis-network": "^9.1.9"
}
}

View File

@ -22,14 +22,8 @@ let graphProps: Awaited<ReturnType<typeof getShortestPaths>> = {
try {
driverNames = await getDriverNames();
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}`);
if (noEmptyParams && paramsNotEqual)
graphProps = await getShortestPaths(source, dest);
}
} catch (error) {
return Astro.redirect('/error');
}