chore: use for instead of forEach

This commit is contained in:
syuilo 2023-04-08 14:18:28 +09:00
parent 25ebb73756
commit 68e8892f61
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}