Files
vHost/backend/internal/service/node_context.go
T

17 lines
271 B
Go

package service
import (
"context"
"sea-vhost/internal/scope"
)
func (s *Projects) nodeRootDomain(ctx context.Context) string {
if s.store != nil {
n, err := s.store.Node(ctx, scope.Node(ctx))
if err == nil {
return n.RootDomain
}
}
return s.rootDomain
}