Skip to content

Commit

Permalink
feat: include package version in health check response
Browse files Browse the repository at this point in the history
  • Loading branch information
IOVgomezdn committed Dec 21, 2023
1 parent d2e691e commit 803cfa2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/Api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { filterParams, getDelayedFields, MODULES } from './lib/apiTools'
import config from '../lib/config'
// It is used only in case Stats cannot provide the circulating supply
import getCirculatingSupply from './lib/getCirculatingSupply'
import pckgJson from '../../package.json'

class Api extends DataCollector {
constructor ({ initConfig, log }, { modules, lastBlocks } = {}) {
Expand Down Expand Up @@ -63,7 +64,7 @@ class Api extends DataCollector {
info () {
const info = {
apiName: 'RSK Explorer API',
version: process.env.npm_package_version,
version: pckgJson.version,
modules: config.api.modules,
txTypes: Object.assign({}, txTypes)
}
Expand Down

0 comments on commit 803cfa2

Please sign in to comment.