summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-03-28 17:00:28 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-03-28 17:00:28 +0900
commit63b930e9fd14f2b6ccb2c484670d27ecd7a247b0 (patch)
tree49d6126ac226f50130003ba98b552c8135394cc7
parentwip (diff)
downloadsharkey-63b930e9fd14f2b6ccb2c484670d27ecd7a247b0.tar.gz
sharkey-63b930e9fd14f2b6ccb2c484670d27ecd7a247b0.tar.bz2
sharkey-63b930e9fd14f2b6ccb2c484670d27ecd7a247b0.zip
wip
-rw-r--r--src/api/endpoints/posts/create.ts2
-rw-r--r--src/api/models/app.ts2
-rw-r--r--src/common/othello/ai/back.ts2
-rw-r--r--src/web/docs/api/endpoints/posts/create.yaml2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/api/endpoints/posts/create.ts b/src/api/endpoints/posts/create.ts
index 2817374545..34f3eea02f 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 528ab156f1..6759b52cde 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 52f01ff97b..0950adaa9f 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 70d35008c0..11d9f40c54 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: