This commit is contained in:
tamaina 2023-04-22 09:52:23 +00:00
parent c03f491008
commit a716950359
2 changed files with 4 additions and 4 deletions

View File

@ -94,11 +94,11 @@ export class AccountMoveService {
// Unfollow
const followings = await this.followingsRepository.findBy({
followeeId: src.id,
followerId: src.id,
});
this.queueService.createUnfollowJob(followings.map(following => ({
from: { id: src.id },
to: { id: following.followerId },
to: { id: following.followeeId },
})));
// Move!
@ -120,7 +120,7 @@ export class AccountMoveService {
/* skip if any error happens */
}
// follow the new account and unfollow the old one
// follow the new account
const proxy = await this.proxyAccountService.fetch();
const followings = await this.followingsRepository.findBy({
followeeId: src.id,

View File

@ -264,7 +264,7 @@ describe('Account Move', () => {
assert.strictEqual(move.status, 200);
await sleep(1000 * 1); // wait for jobs to finish
await sleep(1000 * 3); // wait for jobs to finish
const aliceFollowings = await api('/users/following', {
userId: alice.id,