Permalink
Browse files

fix: pass auth indicator to connection

otherwise the auth database is not used to override the main database settings...
  • Loading branch information...
jimlambie committed Feb 15, 2017
1 parent 8394355 commit 1d3ebed4c0689ab43a579466ed19c93ba6e9dd24
Showing with 3 additions and 1 deletion.
  1. +3 −1 utils/create-client.js
@@ -5,7 +5,9 @@
const Connection = require('@dadi/api').Connection
const config = require('@dadi/api').Config

const connection = Connection(config.get('auth.database'))
const options = config.get('auth.database')
options.auth = true
const connection = Connection(options)
const clientCollectionName = config.get('auth.clientCollection')

const prompt = require('cli-prompt')

0 comments on commit 1d3ebed

Please sign in to comment.