From 40e6541be892384d4a78bbbe7872c4db5018eb0e Mon Sep 17 00:00:00 2001 From: Matthew Plant Date: Thu, 28 Mar 2024 09:56:54 -0400 Subject: [PATCH] Fix SQL (#776) --- .../{29_save_lat_and_lon.sql => 30_save_lat_and_lon.sql} | 0 mobile_verifier/src/heartbeats/mod.rs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename mobile_verifier/migrations/{29_save_lat_and_lon.sql => 30_save_lat_and_lon.sql} (100%) diff --git a/mobile_verifier/migrations/29_save_lat_and_lon.sql b/mobile_verifier/migrations/30_save_lat_and_lon.sql similarity index 100% rename from mobile_verifier/migrations/29_save_lat_and_lon.sql rename to mobile_verifier/migrations/30_save_lat_and_lon.sql diff --git a/mobile_verifier/src/heartbeats/mod.rs b/mobile_verifier/src/heartbeats/mod.rs index 174b84fb7..7e8ac3443 100644 --- a/mobile_verifier/src/heartbeats/mod.rs +++ b/mobile_verifier/src/heartbeats/mod.rs @@ -811,7 +811,7 @@ impl LocationCache { FROM wifi_heartbeats WHERE location_validation_timestamp IS NOT NULL AND location_validation_timestamp >= $1 - ORDER BY DESC location_validation_timestamp + ORDER BY location_validation_timestamp DESC LIMIT 1 "#, )