fixed _id field
This commit is contained in:
parent
a830eb0ef4
commit
e881f3a6ba
1 changed files with 0 additions and 1 deletions
|
|
@ -42,7 +42,6 @@ exports.post = [
|
||||||
const user = new User({
|
const user = new User({
|
||||||
username: username,
|
username: username,
|
||||||
password: await bcrypt.hash(password, 10),
|
password: await bcrypt.hash(password, 10),
|
||||||
_id: dbUser._id,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
await User.findByIdAndUpdate(dbUser._id, user, {});
|
await User.findByIdAndUpdate(dbUser._id, user, {});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue