wip
This commit is contained in:
parent
35115607bc
commit
bae44b4708
5 changed files with 25 additions and 1 deletions
|
@ -28,6 +28,12 @@ export default async function(follower: IUser, followee: IUser) {
|
|||
}
|
||||
});
|
||||
|
||||
User.update({ _id: followee._id }, {
|
||||
$inc: {
|
||||
pendingReceivedFollowRequestsCount: 1
|
||||
}
|
||||
});
|
||||
|
||||
// Publish reciveRequest event
|
||||
if (isLocalUser(followee)) {
|
||||
packUser(follower, followee).then(packed => event(followee._id, 'reciveRequest', packed)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue