Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds 2024 to ElectionYears #152

Merged
merged 1 commit into from
Jul 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ REDIS_URL=redis://:secret@localhost:6379
docker compose up -d
```

- Create the database tables using:
<!-- - Create the database tables using:
```
npm run db:migration:run
```
``` -->

## Load the data into the database

Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions apps/update-command/src/assets/elections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ interface ElectionYear {
}

export const ElectionYears: ElectionYear[] = [
{
year: 2024,
current: false,
},
{
year: 2022,
current: true,
Expand Down
Loading