another fix

This commit is contained in:
Yağızhan authored and GitHub committed 2020-10-03 12:11:58 +03:00
1 parent ce03890810
commit d4e85e501e
1 file changed
+2 -2
+2 -2
View File
@@ -355,7 +355,7 @@ class Service implements \Box\InjectionAwareInterface
$query = $query . ' WHERE ' . implode(' AND ', $where);
}
$query .= " GROUP BY st.id ORDER BY st.priority ASC, st.id DESC";
$query .= " GROUP BY st.id, stm.id ORDER BY stm.created_at DESC, st.priority ASC, st.id DESC";
return array($query, $bindings);
}
@@ -1055,7 +1055,7 @@ class Service implements \Box\InjectionAwareInterface
$query = $query . ' WHERE ' . implode(' AND ', $where);
}
$query .= " GROUP BY spt.id ORDER BY spt.id DESC, sptm.id ASC";
$query .= " GROUP BY spt.id, sptm.id ORDER BY spt.id DESC, sptm.id ASC";
return array($query, $bindings);
}