fix debug mode await
This commit is contained in:
parent
929fdb756f
commit
c78f7145a5
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ app.get('/:owner/:repo', async function (req, res) {
|
|||
debug
|
||||
})
|
||||
if (debug) {
|
||||
res.send(renderHtml(html))
|
||||
res.send(await renderHtml(html))
|
||||
return
|
||||
}
|
||||
res.type('png')
|
||||
|
@ -43,7 +43,7 @@ app.get('/:owner/:repo/:type/:num', async function (req, res) {
|
|||
debug
|
||||
})
|
||||
if (debug) {
|
||||
res.send(renderHtml(html))
|
||||
res.send(await renderHtml(html))
|
||||
return
|
||||
}
|
||||
res.type('png')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue