fix
This commit is contained in:
parent
c03f491008
commit
a716950359
|
@ -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