当注册一个用户时,我会得到这个错误:
(节点:13225)错误:非法参数:未定义,字符串在(/home/admin/Desktop/project/node_modules/bcryptjs/dist/bcrypt.js:189:19) at module.exports.register (/home/admin/Desktop/project/contr
在我的代码中,通过put请求更新对象有一个小问题。当我用postman发送put请求时,request只返回类型对象的id。类型对象具有id和名称属性。genre) return res.status(404).send('The genre was not found.'); const result = validateGenre(req.body.name);
if (result.error) return res.status(400).send(er