fix debug mode await

This commit is contained in:
hazycora 2023-08-02 19:00:50 -05:00
parent 929fdb756f
commit c78f7145a5
No known key found for this signature in database
GPG key ID: 215AF1F81F86940E

View file

@ -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')