1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-02 14:26:28 +02:00
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
}
});