Browse Source

Add model to mongoose

main
Haris Razis 4 years ago
parent
commit
5d822a0e66
No known key found for this signature in database GPG Key ID: 86A4D290ED03FAB4
  1. 2
      server/connections/mongo_conn.js

2
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,

Loading…
Cancel
Save