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