mirror of
https://github.com/r-ca/kidshift-be.git
synced 2024-10-26 00:24:02 +00:00
非同期処理修正
This commit is contained in:
parent
e16b8ce14e
commit
23029c7eb5
|
@ -7,12 +7,12 @@ router.get('/ping', (req: Request, res: Response) => {
|
|||
res.send('pong');
|
||||
});
|
||||
|
||||
router.get('/' , (req: Request, res: Response) => {
|
||||
router.get('/' , async (req: Request, res: Response) => {
|
||||
res.json({
|
||||
"commitHash": getCommitHash(),
|
||||
"branchName": getBranchName(),
|
||||
"commitDate": getCommitDate(),
|
||||
"commitMessage": getCommitMessage()
|
||||
"commitHash": await getCommitHash(),
|
||||
"branchName": await getBranchName(),
|
||||
"commitDate": await getCommitDate(),
|
||||
"commitMessage": await getCommitMessage()
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user