Skip to content

Commit

Permalink
propagating ssl=true from --url into dialectOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
igorski89 committed May 31, 2019
1 parent cd57b40 commit 7e54edd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/config-helper.js
Expand Up @@ -187,7 +187,10 @@ const api = {
let config = api.urlStringToConfigHash(urlString);

config = _.assign(config, {
dialect: config.protocol
dialect: config.protocol,
dialectOptions: {
ssl: config.ssl
}
});

if (config.dialect === 'sqlite' && config.database.indexOf(':memory') !== 0) {
Expand Down

0 comments on commit 7e54edd

Please sign in to comment.