mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-08 08:12:48 +01:00
@@ -4,12 +4,10 @@ import (
|
||||
"context"
|
||||
"net/url"
|
||||
|
||||
"github.com/SecurityBrewery/catalyst/generated/restapi/api"
|
||||
"github.com/SecurityBrewery/catalyst/generated/restapi/operations/logs"
|
||||
"github.com/SecurityBrewery/catalyst/generated/model"
|
||||
)
|
||||
|
||||
func (s *Service) GetLogs(ctx context.Context, params *logs.GetLogsParams) *api.Response {
|
||||
id, _ := url.QueryUnescape(params.Reference)
|
||||
i, err := s.database.LogList(ctx, id)
|
||||
return s.response(ctx, "GetLogs", nil, i, err)
|
||||
func (s *Service) GetLogs(ctx context.Context, reference string) ([]*model.LogEntry, error) {
|
||||
id, _ := url.QueryUnescape(reference)
|
||||
return s.database.LogList(ctx, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user