From a1f4c18afa3807d32e15966d89b201fd3f823ce2 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Mon, 26 Aug 2024 23:38:38 +0200
Subject: Fix order of lat/lng

---
 src/graphql/mutation.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/graphql/mutation.rs b/src/graphql/mutation.rs
index 540dd0f..e88157a 100644
--- a/src/graphql/mutation.rs
+++ b/src/graphql/mutation.rs
@@ -70,8 +70,8 @@ impl Mutation {
                         ",
                         &[
                             &claims.user_id,
-                            &input.latitude,
                             &input.longitude,
+                            &input.latitude,
                             &input.moving_activity,
                         ],
                     )
@@ -122,7 +122,7 @@ impl Mutation {
                     .map(|x| {
                         format!(
                             "ST_SetSRID(ST_MakePoint({}, {}), 4326)",
-                            x.latitude, x.longitude
+                            x.longitude, x.latitude
                         )
                     })
                     .collect();
-- 
cgit v1.2.3-18-g5258