Skip to content

Commit

Permalink
Update account peers on login on meta change
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-essam committed Dec 5, 2024
1 parent b50b89b commit 68cef6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion management/server/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,12 @@ func (am *DefaultAccountManager) LoginPeer(ctx context.Context, login PeerLogin)
return nil, nil, nil, err
}

if updateRemotePeers || isStatusChanged {
postureChecks, err := am.getPeerPostureChecks(account, peer.ID)
if err != nil {
return nil, nil, nil, err
}

if updateRemotePeers || isStatusChanged || (updated && len(postureChecks) > 0) {
am.updateAccountPeers(ctx, accountID)
}

Expand Down

0 comments on commit 68cef6c

Please sign in to comment.