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