@@ -27,12 +27,6 @@ import (
|
||||
"go.probo.inc/probo/pkg/page"
|
||||
)
|
||||
|
||||
type ErrNoProcessingActivitiesFound struct{}
|
||||
|
||||
func (e ErrNoProcessingActivitiesFound) Error() string {
|
||||
return "no processing activities found"
|
||||
}
|
||||
|
||||
type (
|
||||
ProcessingActivity struct {
|
||||
ID gid.GID `db:"id"`
|
||||
|
||||
@@ -404,7 +404,7 @@ func (s *ProcessingActivityService) ExportPDF(
|
||||
}
|
||||
|
||||
if len(processingActivities) == 0 {
|
||||
return &coredata.ErrNoProcessingActivitiesFound{}
|
||||
return coredata.ErrResourceNotFound
|
||||
}
|
||||
|
||||
organization := &coredata.Organization{}
|
||||
|
||||
Reference in New Issue
Block a user