mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-15 21:00:41 +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
|
followerHost: IsNull(), // follower is local
|
||||||
followerId: proxy ? Not(proxy.id) : undefined,
|
followerId: proxy ? Not(proxy.id) : undefined,
|
||||||
});
|
});
|
||||||
const followJobs: RelationshipJobData[] = [];
|
const followJobs = followings.map(following => ({
|
||||||
for (const following of followings) {
|
from: { id: following.followerId },
|
||||||
followJobs.push({ from: { id: following.followerId }, to: { id: dst.id } });
|
to: { id: dst.id },
|
||||||
}
|
})) as RelationshipJobData[];
|
||||||
|
|
||||||
// Decrease following count instead of unfollowing.
|
// Decrease following count instead of unfollowing.
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue