Skip to content

Commit

Permalink
Merge pull request #152 from opensandiego/feat/add-2024-elections
Browse files Browse the repository at this point in the history
Adds 2024 to ElectionYears
  • Loading branch information
robertgz authored Jul 22, 2023
2 parents 5375225 + e80096e commit f712907
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
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

0 comments on commit f712907

Please sign in to comment.