mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 06:00:21 +01:00
fix
This commit is contained in:
parent
c03f491008
commit
a716950359
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue