var mongoose = require('mongoose');
var passportLocalMongoose = require('passport-local-mongoose');
var userIdSchema = new mongoose.Schema({
username: String,
name: String,
password: String,
phonenumber: Number
});
userIdSchema.plugin(passportLocalMongoose);
module.exports = mongoose.model("NewUser", userIdSchema);']
答案 0 :(得分:0)
您在代码中有多余的“(”
.then(({ user })...