fixed the notification bug on importer side

This commit is contained in:
Mohd Arief
2018-08-16 10:01:44 +08:00
parent 0e5293327d
commit 117f2cdaee
+5 -5
View File
@@ -941,11 +941,11 @@ class BookingController extends Controller
$booking->admin_status = 5; // upload china bankslip $booking->admin_status = 5; // upload china bankslip
if($booking->save()){ if($booking->save()){
$userNotification = new Notification; // $userNotification = new Notification;
$userNotification->detail = "Supplier booking report for booking " . $booking->id . " is completed."; // $userNotification->detail = "Supplier booking report for booking " . $booking->id . " is completed.";
$userNotification->link = "/booking/" . $booking->id . "/transfer"; // $userNotification->link = "/booking/" . $booking->id . "/transfer";
$userNotification->user_id = $booking->user_id; // $userNotification->user_id = $booking->user_id;
$userNotification->save(); // $userNotification->save();
return response()->json(['message'=>"Success"],200); return response()->json(['message'=>"Success"],200);
} }
} }