summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-08-26 23:38:38 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-08-26 23:38:38 +0200
commita1f4c18afa3807d32e15966d89b201fd3f823ce2 (patch)
treecbb84a938921282cc06afa68ea5c6574db14cc66 /src
parent6e6f2ce7c24acabdfd1f1f59378467ea225fb27a (diff)
Fix order of lat/lng
Diffstat (limited to 'src')
-rw-r--r--src/graphql/mutation.rs4
1 files changed, 2 insertions, 2 deletions
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();