Skip to content

Commit

Permalink
send logs as json instead
Browse files Browse the repository at this point in the history
  • Loading branch information
birdpump committed Aug 11, 2024
1 parent beb4a11 commit 78aa4bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routes/admin/adminData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 78aa4bb

Please sign in to comment.