From 78aa4bbd2a0ef29e5bc82588fe3b78fa7690c69c Mon Sep 17 00:00:00 2001 From: Marc Hyeler Date: Sun, 11 Aug 2024 15:41:14 -0700 Subject: [PATCH] send logs as json instead --- routes/admin/adminData.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/admin/adminData.js b/routes/admin/adminData.js index 956d8d3..19854fa 100644 --- a/routes/admin/adminData.js +++ b/routes/admin/adminData.js @@ -295,8 +295,7 @@ adminRouter.get('/debug/get-logs', async (req, res, next) => { try { let logs = await getLogs(); console.log(logs) - res.setHeader('Content-Type', 'text/plain'); - res.send(logs); + res.json(logs) } catch (error) { next(error); }