somecleanup
This commit is contained in:
@@ -2,7 +2,6 @@ package controllers
|
||||
|
||||
import (
|
||||
"context"
|
||||
"queryorchestration/api/grpc/spec"
|
||||
serviceinterfaces "queryorchestration/api/serviceInterfaces"
|
||||
"queryorchestration/internal/query"
|
||||
queryprocessor "queryorchestration/internal/queryProcessor"
|
||||
@@ -41,9 +40,9 @@ func (s *QueryController) List(ctx context.Context, req *serviceinterfaces.Query
|
||||
return nil, err
|
||||
}
|
||||
|
||||
outQueries := make([]*serviceinterfaces.Query, len(*queries))
|
||||
for index, query := range *queries {
|
||||
outQueries[index] = ParseQuery(&query)
|
||||
outQueries := make([]*serviceinterfaces.Query, len(queries))
|
||||
for index, query := range queries {
|
||||
outQueries[index] = ParseQuery(query)
|
||||
}
|
||||
|
||||
return &serviceinterfaces.Queries{
|
||||
@@ -105,7 +104,7 @@ func (s *QueryController) Update(ctx context.Context, req *serviceinterfaces.Que
|
||||
return &emptypb.Empty{}, nil
|
||||
}
|
||||
|
||||
func (s *QueryController) Deprecate(ctx context.Context, req *spec.IdMessage) (*emptypb.Empty, error) {
|
||||
func (s *QueryController) Deprecate(ctx context.Context, req *serviceinterfaces.IdMessage) (*emptypb.Empty, error) {
|
||||
id, err := uuid.Parse(req.GetId())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user