Skip to content

Commit

Permalink
Merge pull request #132 from blockfrost/fix/config-port
Browse files Browse the repository at this point in the history
fix: port configuration
  • Loading branch information
vladimirvolek authored Nov 3, 2023
2 parents ea2c7bb + b30d0bd commit 05ec27e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

| :warning: WARNING |
| ---------------------------------------------------------------------------------------------------------------------------------- |
| This version of `blockfrost-backend-ryo` requires `cardano-db-sync 13.1.1.3` or newer. Use version `1.7.x` for earlier releases. |
| :warning: WARNING |
| -------------------------------------------------------------------------------------------------------------------------------- |
| This version of `blockfrost-backend-ryo` requires `cardano-db-sync 13.1.1.3` or newer. Use version `1.7.x` for earlier releases. |

### Added

- translation of cost models from numerical IDs to strings,
required for `cardano-db-sync 13.1.1.3` and newer [#130](https://github.com/blockfrost/blockfrost-backend-ryo/pull/130)

### Updated
### Changed

- node_modules
- yarn

### Fixed

- port configuration via config option `dbSync.port`

## [1.7.0] - 2023-08-30

### Added
Expand Down
5 changes: 3 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ export const loadConfig = () => {
process.env.BLOCKFROST_CONFIG_DBSYNC_HOST ?? config.get<string>('dbSync.host');
const databaseSyncUser =
process.env.BLOCKFROST_CONFIG_DBSYNC_USER ?? config.get<string>('dbSync.user');
const databaseSyncPort =
Number(process.env.BLOCKFROST_CONFIG_DBSYNC_PORT) ?? config.get<number>('dbSync.port');
const databaseSyncPort = process.env.BLOCKFROST_CONFIG_DBSYNC_PORT
? Number(process.env.BLOCKFROST_CONFIG_DBSYNC_PORT)
: config.get<number>('dbSync.port');
const databaseSyncDatabase =
process.env.BLOCKFROST_CONFIG_DBSYNC_DATABASE ?? config.get<string>('dbSync.database');
const databaseSyncPassword =
Expand Down

0 comments on commit 05ec27e

Please sign in to comment.