diff --git a/clients/knex.js b/clients/knex.js index 3b3b88e..7a946ad 100644 --- a/clients/knex.js +++ b/clients/knex.js @@ -27,7 +27,7 @@ const rdsMiddleware = (opts = {}) => { ...options.config.connection, ...values } - if (!options.config.port) { + if (!options.config.connection.port) { throw new Error('port missing') } if (!options.config.connection.password) {