unless ($patrons->count) {
return $c->render( status => 404, openapi => {
error => "Patron doesn't exist"
error => "Patron not found"
});
}
$t->delete_ok( "//$userid:$password@/api/v1/checkouts/history?patron_id=$patron_to_delete_id")
->status_is(404)
->json_is({error => "Patron doesn't exist"});
->json_is({error => "Patron not found"});
-