diff --git a/CHANGELOG.md b/CHANGELOG.md index cb3fbad3..cb09714e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/config.ts b/src/config.ts index e84c357b..e57225b4 100644 --- a/src/config.ts +++ b/src/config.ts @@ -24,8 +24,9 @@ export const loadConfig = () => { process.env.BLOCKFROST_CONFIG_DBSYNC_HOST ?? config.get('dbSync.host'); const databaseSyncUser = process.env.BLOCKFROST_CONFIG_DBSYNC_USER ?? config.get('dbSync.user'); - const databaseSyncPort = - Number(process.env.BLOCKFROST_CONFIG_DBSYNC_PORT) ?? config.get('dbSync.port'); + const databaseSyncPort = process.env.BLOCKFROST_CONFIG_DBSYNC_PORT + ? Number(process.env.BLOCKFROST_CONFIG_DBSYNC_PORT) + : config.get('dbSync.port'); const databaseSyncDatabase = process.env.BLOCKFROST_CONFIG_DBSYNC_DATABASE ?? config.get('dbSync.database'); const databaseSyncPassword =