exceptions changes

This commit is contained in:
Yuri Kuznetsov
2022-06-23 10:31:45 +03:00
parent af717a53b0
commit 05ef2099d4
2 changed files with 23 additions and 22 deletions

View File

@@ -121,6 +121,10 @@ class ExternalAccount extends RecordBase
/** @var string */
$id = $request->getRouteParam('id');
if ($id === '') {
throw new BadRequest();
}
return $this->getRecordService()
->read($id, ReadParams::create())
->getValueMap();