From 125c418d855cc046f9054a640bcc45773bbe8fe0 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Tue, 30 Apr 2024 13:52:19 +0200 Subject: [PATCH] add debug to GetAccount sqlite store --- management/server/sqlite_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/sqlite_store.go b/management/server/sqlite_store.go index 5233bc31d..1b060c988 100644 --- a/management/server/sqlite_store.go +++ b/management/server/sqlite_store.go @@ -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)