This commit is contained in:
Aya Morisawa 2017-02-27 16:18:47 +09:00
parent 39cc17c204
commit f48f3904fc

View File

@ -40,13 +40,12 @@ import git from 'git-last-commit';
* @return {Promise<object>}
*/
module.exports = (params) =>
new Promise(async (res, rej) =>
{
const commit = await prominence(git).getLastCommit();
new Promise(async (res, rej) => {
const commit = await prominence(git).getLastCommit();
res({
maintainer: config.maintainer,
commit: commit.shortHash,
secure: config.https.enable
res({
maintainer: config.maintainer,
commit: commit.shortHash,
secure: config.https.enable
});
});
});