mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Heisentest - suspicious logins report was not ordered by date
The specs needed an order even though none was supplied.
This commit is contained in:
@@ -1441,6 +1441,7 @@ class Report
|
||||
WHERE t.action = 'suspicious'
|
||||
AND t.created_at >= :start_date
|
||||
AND t.created_at <= :end_date
|
||||
ORDER BY t.created_at DESC
|
||||
SQL
|
||||
|
||||
DB.query(sql, start_date: report.start_date, end_date: report.end_date).each do |row|
|
||||
|
||||
Reference in New Issue
Block a user