aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-05-06 22:02:48 +0200
committerMateja <mail@matejamaric.com>2021-05-06 22:02:48 +0200
commitad5d861561e4f55289d55c61c71c14958659aea4 (patch)
tree011829173fbd0ecba12e0abf04d0027dbd9ff099 /models
parent376fae2a3367d5813d088a29c5a62938bd55f762 (diff)
downloadnode-playground-ad5d861561e4f55289d55c61c71c14958659aea4.tar.gz
node-playground-ad5d861561e4f55289d55c61c71c14958659aea4.zip
Fix model typo.
Diffstat (limited to 'models')
-rw-r--r--models/user.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.js b/models/user.js
index 32b0540..3751aae 100644
--- a/models/user.js
+++ b/models/user.js
@@ -7,6 +7,6 @@ const userSchema = new mongoose.Schema({
password: {type: String, required: true},
});
-const userModel = new mongoose.Model('user', userSchema);
+const userModel = new mongoose.model('user', userSchema);
module.exports = userModel;