eachfunc
This commit is contained in:
@@ -14,6 +14,8 @@ type ListFilters struct {
|
||||
}
|
||||
|
||||
func (s *Service) List(ctx context.Context, filters ListFilters) (*[]Query, error) {
|
||||
// TODO - use filters
|
||||
|
||||
dbQueries, err := s.db.Queries.ListQueries(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -24,10 +24,15 @@ func (s *Service) Update(ctx context.Context, entity *queryprocessor.Update) err
|
||||
return err
|
||||
}
|
||||
|
||||
err = s.submitUpdate(ctx, entity)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Service) submitUpdate(ctx *context.Context, entity *queryprocessor.Update) error {
|
||||
func (s *Service) submitUpdate(ctx context.Context, entity *queryprocessor.Update) error {
|
||||
// TODO - generate new entity
|
||||
// TODO - submit update - id, type, activeversion, requiredQueryId, Config
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user