mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-27 14:28:53 +09:00
use for of
This commit is contained in:
parent
a7455035c5
commit
ad9f72291f
@ -771,17 +771,17 @@ export class ApInboxService {
|
||||
where: {
|
||||
followeeId: old_acc.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, new_acc);
|
||||
await this.userFollowingService.unfollow(following.follower, old_acc);
|
||||
} catch {
|
||||
/* empty */
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return 'ok';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user