mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-09-11 16:50:46 +02:00
typo + remove namePlace of Edition as it is useless with the connection to Entity\Place
This commit is contained in:
@@ -56,7 +56,7 @@ class MapApiController extends AbstractController
|
||||
foreach ($places as $place){
|
||||
$jsonPlaces[] = array(
|
||||
'id' => $place->getId(),
|
||||
'name' => $place->getJoinedNames(),
|
||||
'names' => $place->getJoinedNames(),
|
||||
'type' => $place->getType(),
|
||||
'surface' => $place->getTwoDRepresentation($representation, $floor->getAltitude())
|
||||
);
|
||||
@@ -88,7 +88,7 @@ class MapApiController extends AbstractController
|
||||
|
||||
|
||||
#[Route('/map/api/show_place_info/{id}')]
|
||||
public function index(PlaceRepository $rep, int $id): JsonResponse
|
||||
public function show_place_info(PlaceRepository $rep, int $id): JsonResponse
|
||||
{
|
||||
$places = $rep->findPlaceById($id);
|
||||
if (sizeof($places)!=1) {
|
||||
@@ -96,7 +96,7 @@ class MapApiController extends AbstractController
|
||||
}
|
||||
else {
|
||||
return $this->json([
|
||||
'idRoom' => $places[0]->getId(),
|
||||
'idPlace' => $places[0]->getId(),
|
||||
'names' => $places[0]->getJoinedNames(),
|
||||
'users' => $places[0]->getJoinedRoomUsersNames()
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user