mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 20:45:13 +00:00
use for of
This commit is contained in:
parent
a7455035c5
commit
ad9f72291f
1 changed files with 4 additions and 4 deletions
|
@ -771,17 +771,17 @@ export class ApInboxService {
|
||||||
where: {
|
where: {
|
||||||
followeeId: old_acc.id,
|
followeeId: old_acc.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, new_acc);
|
await this.userFollowingService.follow(following.follower, new_acc);
|
||||||
await this.userFollowingService.unfollow(following.follower, old_acc);
|
await this.userFollowingService.unfollow(following.follower, old_acc);
|
||||||
} catch {
|
} catch {
|
||||||
/* empty */
|
/* empty */
|
||||||
}
|
}
|
||||||
});
|
}
|
||||||
|
|
||||||
return 'ok';
|
return 'ok';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue