mirror of
https://github.com/netbirdio/netbird.git
synced 2025-08-12 16:37:35 +02:00
[management] fix group resource events (#3075)
This commit is contained in:
@ -234,11 +234,14 @@ func (m *managerImpl) UpdateResource(ctx context.Context, userID string, resourc
|
|||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to update network resource: %w", err)
|
return nil, fmt.Errorf("failed to update network resource: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, event := range eventsToStore {
|
||||||
|
event()
|
||||||
|
}
|
||||||
|
|
||||||
go m.accountManager.UpdateAccountPeers(ctx, resource.AccountID)
|
go m.accountManager.UpdateAccountPeers(ctx, resource.AccountID)
|
||||||
|
|
||||||
return resource, nil
|
return resource, nil
|
||||||
|
Reference in New Issue
Block a user