From 326ce567f4c902a0d8740595a90e4205d628103b Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sun, 26 Dec 2021 16:03:03 -0700 Subject: [PATCH] Fixed logging bug --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index f32902c..9dc296c 100644 --- a/index.js +++ b/index.js @@ -59,7 +59,7 @@ app.post('/', async (req, res) => { // hcaptcha failed } else { - console.log(`Failed hCaptcha with errors: ${data.error-codes}`) + console.log(`Failed hCaptcha with errors: ${data['error-codes']`) return res.sendStatus(403) } })