mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 16:26:38 +00:00
Preload services targets
This commit is contained in:
@@ -1100,7 +1100,7 @@ func (s *SqlStore) getAccountGorm(ctx context.Context, accountID string) (*types
|
|||||||
Preload("NetworkRouters").
|
Preload("NetworkRouters").
|
||||||
Preload("NetworkResources").
|
Preload("NetworkResources").
|
||||||
Preload("Onboarding").
|
Preload("Onboarding").
|
||||||
Preload("Services").
|
Preload("Services.Targets").
|
||||||
Take(&account, idQueryCondition, accountID)
|
Take(&account, idQueryCondition, accountID)
|
||||||
if result.Error != nil {
|
if result.Error != nil {
|
||||||
log.WithContext(ctx).Errorf("error when getting account %s from the store: %s", accountID, result.Error)
|
log.WithContext(ctx).Errorf("error when getting account %s from the store: %s", accountID, result.Error)
|
||||||
|
|||||||
Reference in New Issue
Block a user