diff --git a/server/connections/mongo_conn.js b/server/connections/mongo_conn.js index 59bb010..1a4fb98 100644 --- a/server/connections/mongo_conn.js +++ b/server/connections/mongo_conn.js @@ -2,6 +2,8 @@ const mongoose = require('mongoose'); const chalk = require('chalk') const {mongo_uri} = require('../config/keys'); +require('../models/User'); + mongoose.Promise = global.Promise; mongoose.connect(mongo_uri, { useNewUrlParser: true,