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