Clean up
This commit is contained in:
parent
2c7b320fe6
commit
296a884fdf
|
@ -23,10 +23,10 @@ import git from 'git-last-commit';
|
||||||
* commit:
|
* commit:
|
||||||
* description: latest commit's hash
|
* description: latest commit's hash
|
||||||
* type: string
|
* type: string
|
||||||
* secure:
|
* secure:
|
||||||
* description: whether the server supports secure protcols
|
* description: whether the server supports secure protcols
|
||||||
* type: boolean
|
* type: boolean
|
||||||
*
|
*
|
||||||
* default:
|
* default:
|
||||||
* description: Failed
|
* description: Failed
|
||||||
* schema:
|
* schema:
|
||||||
|
@ -40,13 +40,12 @@ import git from 'git-last-commit';
|
||||||
* @return {Promise<object>}
|
* @return {Promise<object>}
|
||||||
*/
|
*/
|
||||||
module.exports = (params) =>
|
module.exports = (params) =>
|
||||||
new Promise(async (res, rej) =>
|
new Promise(async (res, rej) => {
|
||||||
{
|
const commit = await prominence(git).getLastCommit();
|
||||||
const commit = await prominence(git).getLastCommit();
|
|
||||||
|
|
||||||
res({
|
res({
|
||||||
maintainer: config.maintainer,
|
maintainer: config.maintainer,
|
||||||
commit: commit.shortHash,
|
commit: commit.shortHash,
|
||||||
secure: config.https.enable
|
secure: config.https.enable
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in New Issue