add debug to GetAccount sqlite store

This commit is contained in:
Pascal Fischer
2024-04-30 13:52:19 +02:00
parent 9f607029c0
commit 125c418d85

View File

@@ -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)