my $patron = Koha::Patrons->find( $c->param('patron_id') );
unless ( $patron ) {
unless ($patron) {
return $c->render(
status => 404,
openapi => {
openapi => { error => 'Patron not found' }
error => 'Patron not found'
}
);
status => 200,
openapi => $old_holds
} catch {
catch {
$c->unhandled_exception($_);
};
-