我正在学习在我的表单应用程序中使用passport js,并且我在一个应用程序中使用user对象,该应用程序使用此模型将用户保存在数据库中,但是当我返回一个已经创建的user对象并尝试使用findOne方法更新该对象时,我遇到了user.findOne is not a function错误,这里是我的代码。not sure if this is the correct way to do it, would welcome suggestions. but at this point the user.findO