Skip to content

Commit

Permalink
DM2-2833-estado-de-su-solicitud-de-arreglo-de-electrodomesticos
Browse files Browse the repository at this point in the history
  • Loading branch information
fe222004 committed Aug 7, 2024
1 parent edfc4ea commit d37c484
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/Http/Controllers/ServiceRequestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ public function show($id)

// Crea una colección de recursos para las solicitudes de servicio pendientes.
$pendingRequestsResource = ServiceRequestResource::collection($pendingRequests);

// Devuelve ambas colecciones de recursos en la respuesta.
return response()->json([
'current_request' => $serviceRequestResource,
'pending_requests' => $pendingRequestsResource
]);

return new ServiceRequestResource($serviceRequestResource);
}

/**
Expand Down

0 comments on commit d37c484

Please sign in to comment.