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

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