summaryrefslogtreecommitdiff
path: root/src/api/endpoints/posts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-05 09:22:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-05 09:22:28 +0900
commitf5f7ceb66b397e0b2ed94cbcb3610ab757af4229 (patch)
tree8aa958f22aa4258cc5e139c793e85d064bbbfada /src/api/endpoints/posts
parentv3972 (diff)
downloadsharkey-f5f7ceb66b397e0b2ed94cbcb3610ab757af4229.tar.gz
sharkey-f5f7ceb66b397e0b2ed94cbcb3610ab757af4229.tar.bz2
sharkey-f5f7ceb66b397e0b2ed94cbcb3610ab757af4229.zip
oops
Diffstat (limited to 'src/api/endpoints/posts')
-rw-r--r--src/api/endpoints/posts/create.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts
index 15cbc4845c..1c3ab53457 100644
--- a/src/api/endpoints/posts/create.ts
+++ b/src/api/endpoints/posts/create.ts
@@ -41,8 +41,8 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
// Get 'geo' parameter
const [geo, geoErr] = $(params.geo).optional.nullable.strict.object()
- .have('latitude', $().number().range(-180, 180))
- .have('longitude', $().number().range(-90, 90))
+ .have('latitude', $().number().range(-90, 90))
+ .have('longitude', $().number().range(-180, 180))
.have('altitude', $().nullable.number())
.have('accuracy', $().nullable.number())
.have('altitudeAccuracy', $().nullable.number())