Clean up
This commit is contained in:
parent
7c5b9ba1d1
commit
50d56bdc25
3 changed files with 1 additions and 51 deletions
|
@ -89,14 +89,10 @@ export default async (user: IUser, data: {
|
|||
|
||||
res(note);
|
||||
|
||||
// Increment notes count
|
||||
User.update({ _id: user._id }, {
|
||||
// Increment notes count
|
||||
$inc: {
|
||||
notesCount: 1
|
||||
},
|
||||
// Update latest note
|
||||
$set: {
|
||||
latestNote: note
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue