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

use for of

parent a7455035
No related branches found
No related tags found
No related merge requests found
......@@ -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';
}
......
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