Update: 2026-07-04 18:43:56
This commit is contained in:
@@ -146,6 +146,14 @@ try {
|
||||
}
|
||||
}
|
||||
|
||||
// 🆕 Cache ride state in Redis
|
||||
sendToLocationServer('update_ride_state', [
|
||||
'ride_id' => $rideId,
|
||||
'status' => 'cancelled_by_passenger',
|
||||
'driver_id' => $driverId ?? '',
|
||||
'passenger_id' => $ride['passenger_id'] ?? '',
|
||||
]);
|
||||
|
||||
jsonSuccess(null, "Ride cancelled successfully");
|
||||
|
||||
} catch (PDOException $e) {
|
||||
|
||||
Reference in New Issue
Block a user