mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 23:32:47 +01:00
@@ -3,10 +3,9 @@ package service
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/SecurityBrewery/catalyst/generated/restapi/api"
|
||||
"github.com/SecurityBrewery/catalyst/generated/model"
|
||||
)
|
||||
|
||||
func (s *Service) ListTasks(ctx context.Context) *api.Response {
|
||||
i, err := s.database.TaskList(ctx)
|
||||
return s.response(ctx, "ListTasks", nil, i, err)
|
||||
func (s *Service) ListTasks(ctx context.Context) ([]*model.TaskWithContext, error) {
|
||||
return s.database.TaskList(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user