Skip to content

Commit

Permalink
fix: features
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimirvolek committed Dec 18, 2023
1 parent 6a80f75 commit e795940
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const packageJson = esmRequire('../package.json');

const config = getConfig();
const isCIP1694Active = config.server.features.some(
feature => feature.toLowerCase() === 'CIP-1694'.toLowerCase(),
(feature: string) => feature.toLowerCase() === 'CIP-1694'.toLowerCase(),
);

const start = (options = {}): FastifyInstance => {
Expand Down
3 changes: 2 additions & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ export const loadConfig = () => {
!config.has('server.prometheusMetrics')
? process.env.BLOCKFROST_CONFIG_SERVER_PROMETHEUS_METRICS === 'true'
: config.get<boolean>('server.prometheusMetrics');
const features = config.get<string[]>('server.features');

const features = config.has('server.features') ? config.get<string[]>('server.features') : [];

// dbSync
const databaseSyncHost =
Expand Down

0 comments on commit e795940

Please sign in to comment.