Closed soggybag closed 6 years ago
Changed, but to const mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const Schema = mongoose.Schema;
Instead of var mongoose = require('mongoose'); const bcrypt = require('bcrypt'); const Schema = mongoose.Schema;
If requires shouldn't be const, please advise.
https://github.com/pomfy113/Reddit-Clone/blob/eee24de78e3cb28e1ee381fb5c14f522a3c1861a/models/user.js#L1
Use const here.
Better as: