Closed tiblu closed 4 years ago
Blocked by https://github.com/sequelize/sequelize-pool/pull/4. Also after the PR gets merged, needs Sequelize to update their dependency.
NOTE: Short term solution has already been implemented
DONE: - Make piece of code that converts the DATABASE_OPTIONS_POOL_MAX to integer before passing on to Sequelize` (53048a0)
Legally reviewed, no impact.
@tiblu Do we need to keep this issue open?
@loorm Still blocked by https://github.com/sequelize/sequelize-pool/pull/4. BUT, we have a workaround and it's working, thus I'll close this issue.
had to parse to int for max and min
What is the problem?
App crashes when DATABASE_OPTIONS_POOL_MAX environment variable is set. This happens after upgrading Sequelize. The latest version has a sanity check that will verify that pool size parameters are of integer type, but every variable coming from ENV is a string.
Possible solution.
Possible solutions:
parseInt
before and then throw if that fails?