This commit is contained in:
syuilo 2018-04-17 22:31:52 +09:00
parent 7c5b9ba1d1
commit 50d56bdc25
3 changed files with 1 additions and 51 deletions

View file

@ -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
}
});