$uid = self::getCurrentUserID();
if (empty($this->parameters['id'])) {
- $this->logErrorAndJsonExit(422, $this->errorFactory->UnprocessableEntity());
+ $this->logAndJsonError(422, $this->errorFactory->UnprocessableEntity());
}
$condition = ['id' => $this->parameters['id']];