This commit is contained in:
syuilo 2018-03-28 17:00:28 +09:00
parent 71065077f6
commit 63b930e9fd
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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`;

View file

@ -56,7 +56,7 @@ process.on('message', async msg => {
}
});
post = res.created_post;
post = res.createdPost;
//#endregion
}

View file

@ -45,7 +45,7 @@ params:
en: "Choices of a poll"
res:
- name: "created_post"
- name: "createdPost"
type: "entity(Post)"
optional: false
desc: