From e80096e6e393619b80b22ecf9ece4af837a633e7 Mon Sep 17 00:00:00 2001 From: Robert Date: Sat, 22 Jul 2023 13:44:54 -0700 Subject: [PATCH] Adds 2024 to ElectionYears Updates README --- README.md | 8 ++++---- apps/update-command/src/assets/elections.ts | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5c605aa..625e16d 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ REDIS_URL=redis://:secret@localhost:6379 docker compose up -d ``` -- Create the database tables using: + ## Load the data into the database @@ -39,10 +39,10 @@ npm run start:worker:dev - Run the console command to add the database initialization tasks to the queue. This command completes immediately. The console running the worker process will update as the queue is processed. ``` -npm run db:initialize:data +npm run initialize:data ``` -The worker process will fetch and add the data to the database. This may take a few minutes. When you see 'Populating Database with Zip Codes by jurisdiction Complete' in the worker console then the update has been complete. The worker process can be stopped after the update is complete. +This may take a few minutes. When you see 'Populating Database with Zip Codes by jurisdiction Complete' in the worker console then the update has been complete. The worker process can be stopped after the update is complete. ## Run the web part of the backend diff --git a/apps/update-command/src/assets/elections.ts b/apps/update-command/src/assets/elections.ts index a92bdbf..7f6172f 100644 --- a/apps/update-command/src/assets/elections.ts +++ b/apps/update-command/src/assets/elections.ts @@ -4,6 +4,10 @@ interface ElectionYear { } export const ElectionYears: ElectionYear[] = [ + { + year: 2024, + current: false, + }, { year: 2022, current: true,