From 63b930e9fd14f2b6ccb2c484670d27ecd7a247b0 Mon Sep 17 00:00:00 2001
From: syuilo <syuilotan@yahoo.co.jp>
Date: Wed, 28 Mar 2018 17:00:28 +0900
Subject: [PATCH] wip

---
 src/api/endpoints/posts/create.ts            | 2 +-
 src/api/models/app.ts                        | 2 +-
 src/common/othello/ai/back.ts                | 2 +-
 src/web/docs/api/endpoints/posts/create.yaml | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts
index 281737454..34f3eea02 100644
--- a/src/api/endpoints/posts/create.ts
+++ b/src/api/endpoints/posts/create.ts
@@ -270,7 +270,7 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
 
 	// Reponse
 	res({
-		created_post: postObj
+		createdPost: postObj
 	});
 
 	//#region Post processes
diff --git a/src/api/models/app.ts b/src/api/models/app.ts
index 528ab156f..6759b52cd 100644
--- a/src/api/models/app.ts
+++ b/src/api/models/app.ts
@@ -83,7 +83,7 @@ export const pack = (
 		delete _app.secret;
 	}
 
-	_app.icon_url = _app.icon != null
+	_app.iconUrl = _app.icon != null
 		? `${config.drive_url}/${_app.icon}`
 		: `${config.drive_url}/app-default.jpg`;
 
diff --git a/src/common/othello/ai/back.ts b/src/common/othello/ai/back.ts
index 52f01ff97..0950adaa9 100644
--- a/src/common/othello/ai/back.ts
+++ b/src/common/othello/ai/back.ts
@@ -56,7 +56,7 @@ process.on('message', async msg => {
 			}
 		});
 
-		post = res.created_post;
+		post = res.createdPost;
 		//#endregion
 	}
 
diff --git a/src/web/docs/api/endpoints/posts/create.yaml b/src/web/docs/api/endpoints/posts/create.yaml
index 70d35008c..11d9f40c5 100644
--- a/src/web/docs/api/endpoints/posts/create.yaml
+++ b/src/web/docs/api/endpoints/posts/create.yaml
@@ -45,7 +45,7 @@ params:
           en: "Choices of a poll"
 
 res:
-  - name: "created_post"
+  - name: "createdPost"
     type: "entity(Post)"
     optional: false
     desc: