From 63b930e9fd14f2b6ccb2c484670d27ecd7a247b0 Mon Sep 17 00:00:00 2001 From: syuilo 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 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: