mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-12-22 08:20:10 +00:00
chore: use for instead of forEach
This commit is contained in:
parent
25ebb73756
commit
68e8892f61
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue