returned the road item object in the model
This commit is contained in:
@@ -317,7 +317,7 @@ class RoadItemsProjectController extends Controller
|
||||
|
||||
$road_item = RoadItemsProject::store(Auth::user(), $attributes, $before_image, $after_image, $request->observed_item_id);
|
||||
|
||||
if ($road_item == -1) {
|
||||
if ($road_item === -1) {
|
||||
return response()->json([
|
||||
'message' => 'اقدام مربوطه قبلا رسیدگی شده است.'
|
||||
], 400);
|
||||
|
||||
Reference in New Issue
Block a user