From efe6d916e290245b866c8f018621df3bd161bcf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Mon, 20 May 2024 09:29:09 +0100 Subject: [PATCH] order results by timestamp desc --- nym-api/src/support/storage/manager.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nym-api/src/support/storage/manager.rs b/nym-api/src/support/storage/manager.rs index 077e7eba26..a885359917 100644 --- a/nym-api/src/support/storage/manager.rs +++ b/nym-api/src/support/storage/manager.rs @@ -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,