Skip to content

best way to save what you love

core/api: no longer reassign to const

wukkoa305bdb78d0f
diff --git a/src/core/api.js b/src/core/api.js
index cdcf216b..c4087e0b 100644
--- a/src/core/api.js
+++ b/src/core/api.js
@@ -79,7 +79,7 @@ export function runAPI(express, app, gitCommit, gitBranch, __dirname) {
// handle express.json errors properly (https://github.com/expressjs/express/issues/4065)
app.use('/api/json', (err, req, res, next) => {
- const errorText = "invalid json body";
+ let errorText = "invalid json body";
const acceptHeader = String(req.header('Accept')) !== "application/json";
if (err || acceptHeader) {