function getTargets($service) {
try {
- $stmt = $GLOBALS['db']->prepare("SELECT * FROM flag_ids WHERE (received + INTERVAL '300 minute') > now() and service = ? and status = 0 ORDER BY received DESC");
+ $stmt = $GLOBALS['db']->prepare("SELECT * FROM flag_ids WHERE (received + INTERVAL '30 minute') > now() and service = ? and status = 0 ORDER BY received DESC");
$stmt->execute(array($service));
$targets = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($targets);