forked from FoundKeyGang/FoundKey
wip
This commit is contained in:
parent
71065077f6
commit
63b930e9fd
4 changed files with 4 additions and 4 deletions
|
@ -270,7 +270,7 @@ module.exports = (params, user: IUser, app) => new Promise(async (res, rej) => {
|
||||||
|
|
||||||
// Reponse
|
// Reponse
|
||||||
res({
|
res({
|
||||||
created_post: postObj
|
createdPost: postObj
|
||||||
});
|
});
|
||||||
|
|
||||||
//#region Post processes
|
//#region Post processes
|
||||||
|
|
|
@ -83,7 +83,7 @@ export const pack = (
|
||||||
delete _app.secret;
|
delete _app.secret;
|
||||||
}
|
}
|
||||||
|
|
||||||
_app.icon_url = _app.icon != null
|
_app.iconUrl = _app.icon != null
|
||||||
? `${config.drive_url}/${_app.icon}`
|
? `${config.drive_url}/${_app.icon}`
|
||||||
: `${config.drive_url}/app-default.jpg`;
|
: `${config.drive_url}/app-default.jpg`;
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ process.on('message', async msg => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
post = res.created_post;
|
post = res.createdPost;
|
||||||
//#endregion
|
//#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ params:
|
||||||
en: "Choices of a poll"
|
en: "Choices of a poll"
|
||||||
|
|
||||||
res:
|
res:
|
||||||
- name: "created_post"
|
- name: "createdPost"
|
||||||
type: "entity(Post)"
|
type: "entity(Post)"
|
||||||
optional: false
|
optional: false
|
||||||
desc:
|
desc:
|
||||||
|
|
Loading…
Reference in a new issue