mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-21 17:56:39 +00:00
add debug to GetAccount sqlite store
This commit is contained in:
@@ -430,7 +430,7 @@ func (s *SqliteStore) GetAllAccounts() (all []*Account) {
|
||||
func (s *SqliteStore) GetAccount(accountID string) (*Account, error) {
|
||||
|
||||
var account Account
|
||||
result := s.db.Model(&account).Debug().
|
||||
result := s.db.Debug().Model(&account).
|
||||
Preload("UsersG.PATsG"). // have to be specifies as this is nester reference
|
||||
Preload(clause.Associations).
|
||||
First(&account, "id = ?", accountID)
|
||||
|
||||
Reference in New Issue
Block a user