This commit is contained in:
syuilo 2018-07-28 07:56:33 +09:00
parent 5995b83f0d
commit b0672bbbfc

View file

@ -66,6 +66,12 @@ export default async function(followee: IUser, follower: IUser) {
});
//#endregion
await User.update({ _id: followee._id }, {
$inc: {
pendingReceivedFollowRequestsCount: -1
}
});
packUser(followee, followee, {
detail: true
}).then(packed => event(followee._id, 'meUpdated', packed));