order results by timestamp desc

This commit is contained in:
Jędrzej Stuczyński
2024-05-20 09:29:09 +01:00
parent 910b6a1369
commit efe6d916e2
+2
View File
@@ -1040,6 +1040,7 @@ impl StorageManager {
JOIN monitor_run ON mixnode_status.timestamp = monitor_run.timestamp
JOIN testing_route ON monitor_run.id = testing_route.monitor_run_id
WHERE mix_id = ?
ORDER BY mixnode_status.timestamp DESC
LIMIT ? OFFSET ?
"#,
mix_id,
@@ -1090,6 +1091,7 @@ impl StorageManager {
JOIN monitor_run ON gateway_status.timestamp = monitor_run.timestamp
JOIN testing_route ON monitor_run.id = testing_route.monitor_run_id
WHERE identity = ?
ORDER BY gateway_status.timestamp DESC
LIMIT ? OFFSET ?
"#,
gateway_identity,