Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal committed Dec 15, 2023
1 parent 366171c commit 8b78cc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ To use this you need a running [CouchDB](https://docs.couchdb.org/en/stable/) an
The following variables might need to be configured in the `.env` file:
- `DATABASE_URL` URL of the `CouchDB` or [replication backend](https://github.com/Aam-Digital/replication-backend)
- `QUERY_URL` URL of the SQS
- `SCHEMA_CONFIG_ID` database ID of the document which holds the SQS schema
- `SCHEMA_CONFIG_ID` database ID of the document which holds the SQS schema (default `_design/sqlite:config`)
- `PORT` where the app should listen (default 3000)
- `SENTRY_DSN` for remote logging
2 changes: 2 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ COPY --from=builder /app/dist ./dist
# (optional) The sentry DSN in order to send the error messages to sentry
ENV SENTRY_DSN=""
ENV PORT=""
ENV DATABASE_URL=""
ENV QUERY_URL=""

CMD ["node", "dist/main"]

2 changes: 1 addition & 1 deletion src/app.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { catchError, concat, map, mergeMap, toArray } from 'rxjs';
import { SqlReport } from './sql-report';
import { QueryBody } from './query-body.dto';

@Controller()
@Controller('report')
export class AppController {
private dbUrl = this.configService.get('DATABASE_URL');
private queryUrl = this.configService.get('QUERY_URL');
Expand Down

0 comments on commit 8b78cc9

Please sign in to comment.