minor cleanup changes

This commit is contained in:
crn4
2025-10-30 18:03:06 +01:00
parent 4896428d76
commit ab8a2baa32
2 changed files with 10 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ func (s *SqlStore) GetAccountSlow(ctx context.Context, accountID string) (*types
var account types.Account
result := s.db.Model(&account).
Omit("GroupsG").
Preload("UsersG.PATsG"). // have to be specifies as this is nester reference
Preload("UsersG.PATsG"). // have to be specified as this is nested reference
Preload(clause.Associations).
Take(&account, idQueryCondition, accountID)
if result.Error != nil {