runonbitcoin / run-db

An indexer that crawls the blockchain and calculates RUN states
MIT License
24 stars 22 forks source link

Parse config settings as integers #15

Closed nicholaskuechler closed 3 years ago

nicholaskuechler commented 3 years ago

For some reason, my environment variables and .env files had the integers coming through as strings and I was seeing this error:

TypeError [ERR_INVALID_ARG_TYPE]: The "msecs" argument must be of type number. Received type string ('30000')
brentongunning commented 3 years ago

LGTM, thanks!