我在获取数据时遇到问题 UnhandledPromiseRejectionWarning : MongooseError: Model.findOne() 不再接受回调

问题描述 投票:0回答:0

app.post("/login",checkNotAuthenticated,function(req, res) {const {email, password} = req.body; users.findOne({email: email}),function(err, post) {res.render("/");});});

node.js mongodb authentication mongoose callback
© www.soinside.com 2019 - 2024. All rights reserved.