From 199cf5dca105d432bfc89f99fbbff4f6aabc0166 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Fri, 30 Aug 2024 15:37:57 +0100 Subject: [PATCH] Fix quota parsing fixes FlowFuse/flowfuse#4431 Not parsing response to a JSON object --- forge/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge/auth.js b/forge/auth.js index b423739..f526a89 100644 --- a/forge/auth.js +++ b/forge/auth.js @@ -22,7 +22,7 @@ module.exports = fp(async function (app, opts, done) { authorization: `Bearer ${token}` } }) - return project.body + return JSON.parse(project.body) } async function checkAuth (request, reply) {