fix domain store slice retrieval

This commit is contained in:
Alisdair MacLeod
2026-01-27 17:27:16 +00:00
parent 3c5ac17e2f
commit 2c9decfa55
3 changed files with 3 additions and 7 deletions

View File

@@ -4715,7 +4715,7 @@ func (s *SqlStore) ListCustomDomains(ctx context.Context, accountID string) ([]*
tx := s.db
var domains []*domain.Domain
result := tx.Find(domains, accountIDCondition, accountID)
result := tx.Find(&domains, accountIDCondition, accountID)
if result.Error != nil {
log.WithContext(ctx).Errorf("failed to get reverse proxy custom domains from the store: %s", result.Error)
return nil, status.Errorf(status.Internal, "failed to get reverse proxy custom domains from store")