Skip to content

Commit

Permalink
feat: return error not found for stdout repository list
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed Apr 23, 2024
1 parent 30fc1f7 commit 0690ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/activity/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ var (
ErrInvalidUUID = errors.New("invalid syntax of uuid")
ErrInvalidData = errors.New("invalid log data")
ErrInvalidFilter = errors.New("invalid activity filter")
ErrNotFound = errors.New("activities not found")
)
3 changes: 1 addition & 2 deletions core/activity/stdout_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ func (r StdoutRepository) Insert(ctx context.Context, log *audit.Log) error {
return json.NewEncoder(r.writer).Encode(log)
}

// TODO : Fix this
func (r StdoutRepository) List(ctx context.Context, filter Filter) ([]audit.Log, error) {
return []audit.Log{}, nil
return []audit.Log{}, ErrNotFound
}

0 comments on commit 0690ca8

Please sign in to comment.