Commit f34a5ff6 authored by Vadim's avatar Vadim

конец занятия №86

parent 08b0c7d5
......@@ -30,7 +30,7 @@ const createRouter = () => {
}
user.generateToken();
await user.save();
await user.save({validateBeforeSave: false});
res.send(user);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment