await promises (#8519)
This commit is contained in:
@@ -67,8 +67,10 @@ export async function insertFollowingDoc(followee: { id: User['id']; host: User[
|
||||
if (alreadyFollowed) return;
|
||||
|
||||
//#region Increment counts
|
||||
Users.increment({ id: follower.id }, 'followingCount', 1);
|
||||
Users.increment({ id: followee.id }, 'followersCount', 1);
|
||||
await Promises.all([
|
||||
Users.increment({ id: follower.id }, 'followingCount', 1),
|
||||
Users.increment({ id: followee.id }, 'followersCount', 1),
|
||||
]);
|
||||
//#endregion
|
||||
|
||||
//#region Update instance stats
|
||||
|
||||
Reference in New Issue
Block a user