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