72810086

Date: 2022-06-30 04:48:35
Score: 6
Natty: 5
Report link

Did you solve this in the end? SO won't let me comment, but i'd suggest changing var User = mongoose.models.User || mongoose.model('User', UserSchema);

to

module.exports = mongoose.model("User", User)

Reasons:
  • RegEx Blacklisted phrase (1): SO won't let me comment
  • RegEx Blacklisted phrase (3): Did you solve this
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you solve this in the
  • Low reputation (1):
Posted by: tudor14