Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Oct 21, 2024
1 parent a47311e commit 485f03e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/sync-metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "npm run clean && tsc && resolve-tspaths",
"clean": "rm -rf dist",
"dev2": "dotenv-run -f ./secrets/development/.env.development -- tsx watch ./src/index.ts",
"dev": "dotenv-run -f ./secrets/development/.env.development -- tsx watch ./src/index.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"start": "node dist/index.js"
Expand Down
4 changes: 2 additions & 2 deletions apps/sync-metrics/src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default async () => {
//
// Retrieve all Lines and Stops from database

const allLinesTxt = await SERVERDB.get(`${SERVERDB_KEYS.NETWORK.LINES}:all`);
const allLinesTxt = await SERVERDB.get(SERVERDB_KEYS.NETWORK.LINES);

if (!allLinesTxt) {
throw new Error('No lines found in SERVERDB');
Expand All @@ -28,7 +28,7 @@ export default async () => {
const allLinesData: any[] = JSON.parse(allLinesTxt);
const allLinesSet = new Set(allLinesData.map(item => item.line_id));

const allStopsTxt = await SERVERDB.get(`${SERVERDB_KEYS.NETWORK.STOPS}:all`);
const allStopsTxt = await SERVERDB.get(SERVERDB_KEYS.NETWORK.STOPS);
if (!allStopsTxt) {
throw new Error('No stops found in SERVERDB');
}
Expand Down

0 comments on commit 485f03e

Please sign in to comment.