mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-11 14:28:40 +00:00
use direct data access for response data
This commit is contained in:
parent
1b61110bc8
commit
303c6ddb06
|
|
@ -75,7 +75,7 @@ final class ApiController extends Controller
|
|||
public function apiDrawCreate(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||
{
|
||||
if (!empty($val = $this->validateDrawCreate($request))) {
|
||||
$response->set('draw_create', new FormValidation($val));
|
||||
$response->data['draw_create'] = new FormValidation($val);
|
||||
$response->header->status = RequestStatusCode::R_400;
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user