mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-04 22:10:56 +01:00
Update management/server/sqlite_store.go
This commit is contained in:
parent
89383b7f01
commit
515ce9e3af
@ -209,7 +209,7 @@ func (s *SqliteStore) SaveAccount(account *Account) error {
|
|||||||
accCopy.NameServerGroupsG = make([]nbdns.NameServerGroup, 0, len(accCopy.NameServerGroups))
|
accCopy.NameServerGroupsG = make([]nbdns.NameServerGroup, 0, len(accCopy.NameServerGroups))
|
||||||
for id, ns := range accCopy.NameServerGroups {
|
for id, ns := range accCopy.NameServerGroups {
|
||||||
ns.ID = id
|
ns.ID = id
|
||||||
//we need an explicit reference to the account as it is missing for some reason
|
//we need an explicit reference to the account for gorm
|
||||||
ns.AccountID = accCopy.Id
|
ns.AccountID = accCopy.Id
|
||||||
accCopy.NameServerGroupsG = append(accCopy.NameServerGroupsG, *ns)
|
accCopy.NameServerGroupsG = append(accCopy.NameServerGroupsG, *ns)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user