Commit eafa98fd authored by SpinShare's avatar SpinShare

exposed latest mac download

parent 7afe84ea
......@@ -71,10 +71,10 @@ class IndexController extends AbstractController
$data = [];
$getLatestWindows = $em->getRepository(ClientRelease::class)->findOneBy(array('platform' => 'win32'), array('majorVersion' => 'DESC', 'minorVersion' => 'DESC', 'patchVersion' => 'DESC'));
// $getLatestMac = $em->getRepository(ClientRelease::class)->findOneBy(array('platform' => 'mac'), array('majorVersion' => 'DESC', 'minorVersion' => 'DESC', 'patchVersion' => 'DESC'));
$getLatestMac = $em->getRepository(ClientRelease::class)->findOneBy(array('platform' => 'darwin'), array('majorVersion' => 'DESC', 'minorVersion' => 'DESC', 'patchVersion' => 'DESC'));
$data['latestWindows'] = $getLatestWindows->getFileReference();
// $data['latestMac'] = $getLatestMac->getFileReference();
$data['latestMac'] = $getLatestMac->getFileReference();
return $this->render('index/client.html.twig', $data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment