Missed a s ^^

This commit is contained in:
Kouril42 2023-02-17 17:25:38 +01:00
parent 5d66658842
commit 7179f8f752

View File

@ -94,7 +94,7 @@ class MapApiController extends AbstractController
} }
$siteJSON[] = array(['name' => $b->getName(), 'id' => $b->getId(), 'floors' => $buildJSON]); $siteJSON[] = array(['name' => $b->getName(), 'id' => $b->getId(), 'floors' => $buildJSON]);
} }
$response[] = array(['name' => $s->getName(), 'id' => $s->getId(), 'building' => $siteJSON]); $response[] = array(['name' => $s->getName(), 'id' => $s->getId(), 'buildings' => $siteJSON]);
} }
return $this->json($response); return $this->json($response);
} }