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 "#, )