fix comment

This commit is contained in:
Kavalar 2023-05-17 01:19:52 +03:00
parent 4ae43ff2da
commit b5013e4ff9

View File

@ -125,7 +125,9 @@ class CommentController extends ApiController
$request['user_id'] = $user_id;
$model->load($request, '');
$put = array_diff($request, [null, '']);
$model->load($put, '');
if (!$model->save()) {
return $model->errors;