4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 21:26:37 +00:00

That "type" field was used everywhere...

This commit is contained in:
Buster Neece 2014-08-17 23:08:55 -05:00
parent 9a8e16398e
commit 7e1ace4e15

View File

@ -26,10 +26,9 @@ class NotificationManager
$start_threshold = time();
$end_threshold = time()+(60*$notify_minutes);
$schedule_items = $em->createQuery('SELECT s, st FROM Entity\Schedule s JOIN s.station st WHERE s.start_time >= :start AND s.start_time <= :end AND s.type = :type AND s.is_notified = 0')
$schedule_items = $em->createQuery('SELECT s, st FROM Entity\Schedule s JOIN s.station st WHERE s.start_time >= :start AND s.start_time <= :end AND s.is_notified = 0')
->setParameter('start', $start_threshold)
->setParameter('end', $end_threshold)
->setParameter('type', 'station')
->setMaxResults(1)
->execute();