Skip to content

Commit

Permalink
document DEAL_INGESTER_TOKEN
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Jan 27, 2025
1 parent 2244458 commit cfa2dbd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/bin/spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const {
REQUEST_LOGGING = 'true'
} = process.env

// This token is used by other Spark services to authenticate requests adding new deals
// to Spark's database of deals eligible for retrieval testing (`POST /eligible-deals-batch`).
// In production, the value is configured using Fly.io secrets (`fly secrets`).
// The same token is configured in Fly.io secrets for the deal-observer service too.
assert(DEAL_INGESTER_TOKEN, 'DEAL_INGESTER_TOKEN is required')

const client = new pg.Pool({
Expand Down

0 comments on commit cfa2dbd

Please sign in to comment.