chore: use for instead of forEach
This commit is contained in:
parent
25ebb73756
commit
68e8892f61
|
@ -72,17 +72,17 @@ export class AccountMoveService {
|
||||||
where: {
|
where: {
|
||||||
followeeId: src.id,
|
followeeId: src.id,
|
||||||
followerHost: IsNull(), // follower is local
|
followerHost: IsNull(), // follower is local
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
followings.forEach(async (following) => {
|
for (const following of followings) {
|
||||||
if (!following.follower) return;
|
if (!following.follower) continue;
|
||||||
try {
|
try {
|
||||||
await this.userFollowingService.follow(following.follower, dst);
|
await this.userFollowingService.follow(following.follower, dst);
|
||||||
await this.userFollowingService.unfollow(following.follower, src);
|
await this.userFollowingService.unfollow(following.follower, src);
|
||||||
} catch {
|
} catch {
|
||||||
/* empty */
|
/* empty */
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
return iObj;
|
return iObj;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue