mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 06:00:21 +01:00
use Array.map instead of for const of
This commit is contained in:
parent
b0d640f642
commit
ccfbc89047
1 changed files with 4 additions and 4 deletions
|
@ -146,10 +146,10 @@ export class AccountMoveService {
|
|||
followerHost: IsNull(), // follower is local
|
||||
followerId: proxy ? Not(proxy.id) : undefined,
|
||||
});
|
||||
const followJobs: RelationshipJobData[] = [];
|
||||
for (const following of followings) {
|
||||
followJobs.push({ from: { id: following.followerId }, to: { id: dst.id } });
|
||||
}
|
||||
const followJobs = followings.map(following => ({
|
||||
from: { id: following.followerId },
|
||||
to: { id: dst.id },
|
||||
})) as RelationshipJobData[];
|
||||
|
||||
// Decrease following count instead of unfollowing.
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue