Skip to content

Commit

Permalink
Updated createUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
christroutner committed Feb 4, 2019
1 parent 79b3596 commit 6cdefda
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/users/createUsers.js
Expand Up @@ -5,11 +5,11 @@ const config = require('../../config')
const USERNAME = 'test'
const PASSWORD = 'pass'

// Connect to the Mongo Database.
mongoose.Promise = global.Promise

async function addUser () {
await mongoose.connect(config.database)
// Connect to the Mongo Database.
mongoose.Promise = global.Promise
mongoose.set('useCreateIndex', true) // Stop deprecation warning.
await mongoose.connect(config.database, { useNewUrlParser: true })

const User = require('../../src/models/users')

Expand Down

0 comments on commit 6cdefda

Please sign in to comment.