From f5f7ceb66b397e0b2ed94cbcb3610ab757af4229 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 5 Mar 2018 09:22:28 +0900 Subject: [PATCH] oops --- src/api/endpoints/posts/create.ts | 4 ++-- src/web/docs/api/entities/post.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 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()) diff --git a/src/web/docs/api/entities/post.yaml b/src/web/docs/api/entities/post.yaml index 451d2579d9..f780263144 100644 --- a/src/web/docs/api/entities/post.yaml +++ b/src/web/docs/api/entities/post.yaml @@ -140,12 +140,12 @@ props: type: "number" optional: false desc: - ja: "緯度。-180〜180で表す。" + ja: "緯度。-90〜90で表す。" - name: "longitude" type: "number" optional: false desc: - ja: "経度。-90〜90で表す。" + ja: "経度。-180〜180で表す。" - name: "altitude" type: "number" optional: false