returned the road item object in the model

This commit is contained in:
2024-12-21 14:22:17 +03:30
parent 767830cf47
commit 48a966a34f
4 changed files with 8 additions and 8 deletions

View File

@@ -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);