Skip to content

Commit

Permalink
Merge pull request #15 from teamq-ec/DM2-2646-desarrollo-del-sistema-…
Browse files Browse the repository at this point in the history
…de-registro-de-usuarios-con-angular-y-laravel

DM2-2833-estado-de-su-solicitud-de-arreglo-de-electrodomesticos
  • Loading branch information
fe222004 authored Aug 7, 2024
2 parents 4933f78 + d37c484 commit 70d4979
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 70d4979

Please sign in to comment.