From 5d822a0e66db7a1b5a12cec18336bdc4ce462186 Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Fri, 18 Dec 2020 17:30:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20model=20to=20mongoose?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/connections/mongo_conn.js | 2 ++ 1 file changed, 2 insertions(+) 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,