diff --git a/src/modules/get_activity/app/get_activity_controller.ts b/src/modules/get_activity/app/get_activity_controller.ts index 8d9662a..bbd36b5 100644 --- a/src/modules/get_activity/app/get_activity_controller.ts +++ b/src/modules/get_activity/app/get_activity_controller.ts @@ -3,6 +3,7 @@ import { MissingParameter, UserNotAuthenticated, } from "../../../core/helpers/errors/ModuleError"; +import { NotFoundError } from "../../../core/helpers/errors/RepoError"; import { BadRequest, HttpRequest, @@ -48,6 +49,9 @@ export class GetActivityController { if (error instanceof MissingParameter) { return new NotFound(error.message); } + if (error instanceof NotFoundError) { + return new NotFound(error.message); + } return new InternalServerError(error.message); } }