Lines 197-210
sub delete_history {
Link Here
|
197 |
'me.borrowernumber' => $patron_id |
197 |
'me.borrowernumber' => $patron_id |
198 |
}); |
198 |
}); |
199 |
|
199 |
|
200 |
$patrons->anonymise_issue_history; |
|
|
201 |
|
202 |
unless ($patrons->count) { |
200 |
unless ($patrons->count) { |
203 |
return $c->render( status => 404, openapi => { |
201 |
return $c->render( status => 404, openapi => { |
204 |
error => "Patron doesn't exist" |
202 |
error => "Patron doesn't exist" |
205 |
}); |
203 |
}); |
206 |
} |
204 |
} |
207 |
|
205 |
|
|
|
206 |
$patrons->anonymise_issue_history; |
207 |
|
208 |
return $c->render( status => 204, openapi => "" ); |
208 |
return $c->render( status => 204, openapi => "" ); |
209 |
} |
209 |
} |
210 |
|
210 |
|
211 |
- |
|
|