Skip to content
Snippets Groups Projects
Commit 68e8892f authored by syuilo's avatar syuilo
Browse files

chore: use for instead of forEach

parent 25ebb737
No related branches found
No related tags found
No related merge requests found
......@@ -72,17 +72,17 @@ export class AccountMoveService {
where: {
followeeId: src.id,
followerHost: IsNull(), // follower is local
}
},
});
followings.forEach(async (following) => {
if (!following.follower) return;
for (const following of followings) {
if (!following.follower) continue;
try {
await this.userFollowingService.follow(following.follower, dst);
await this.userFollowingService.unfollow(following.follower, src);
} catch {
/* empty */
}
});
}
return iObj;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment