Files
netbird/management/server
Misha Bragin 1bda8fd563 Remove stale peer indices when getting peer by key after removing (#711)
When we delete a peer from an account, we save the account in the file store.
The file store maintains peerID -> accountID and peerKey -> accountID indices.
Those can't be updated when we delete a peer because the store saves the whole account
without a peer already and has no access to the removed peer.
In this PR, we dynamically check if there are stale indices when GetAccountByPeerPubKey
and GetAccountByPeerID.
2023-03-01 12:11:32 +01:00
..
2023-02-28 18:17:55 +01:00
2022-10-22 13:29:39 +02:00
2022-10-22 15:06:54 +02:00
2023-02-03 21:47:20 +01:00
2023-01-25 16:29:59 +01:00