Files
netbird/management/server
Misha Bragin daad785538 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:28:44 +01:00
..
2023-03-01 12:28:44 +01:00
2022-10-22 13:29:39 +02:00
2023-03-01 09:44:52 +01:00
2023-03-01 09:42:53 +01:00
2022-10-22 15:06:54 +02:00
2023-03-01 10:37:29 +01:00
2023-02-03 21:47:20 +01:00
2023-01-25 16:29:59 +01:00
2023-03-01 10:59:06 +01:00