parent
13a75abc91
commit
246cead2b1
19 changed files with 404 additions and 63 deletions
|
@ -633,6 +633,9 @@ function saveReply(reply: INote, note: INote) {
|
|||
|
||||
function incNotesCountOfUser(user: IUser) {
|
||||
User.update({ _id: user._id }, {
|
||||
$set: {
|
||||
updatedAt: new Date()
|
||||
},
|
||||
$inc: {
|
||||
notesCount: 1
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue