Fix tests

This commit is contained in:
bcmmbaga
2024-08-14 10:27:07 +03:00
parent 226dc95afa
commit 7fa71419cd
2 changed files with 30 additions and 1 deletions
+2 -1
View File
@@ -293,6 +293,8 @@ func (am *DefaultAccountManager) DeletePeer(ctx context.Context, accountID, peer
return err
}
updateAccountPeers := isPeerInActiveGroup(account, peerID)
err = am.deletePeers(ctx, account, []string{peerID}, userID)
if err != nil {
return err
@@ -303,7 +305,6 @@ func (am *DefaultAccountManager) DeletePeer(ctx context.Context, accountID, peer
return err
}
updateAccountPeers := isPeerInActiveGroup(account, peerID)
if updateAccountPeers {
am.updateAccountPeers(ctx, account)
}