mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 09:46:40 +00:00
17 lines
398 B
Go
17 lines
398 B
Go
package server
|
|
|
|
import (
|
|
"github.com/netbirdio/netbird/management/server/types"
|
|
)
|
|
|
|
func (am *DefaultAccountManager) enrichAccountFromHolder(account *types.Account) {
|
|
a := am.holder.GetAccount(account.Id)
|
|
if a == nil {
|
|
am.holder.AddAccount(account)
|
|
return
|
|
}
|
|
account.NetworkMapCache = a.NetworkMapCache
|
|
account.NetworkMapCache.UpdateAccountPointer(account)
|
|
am.holder.AddAccount(account)
|
|
}
|