diff --git a/routes/api/all.js b/routes/api/all.js index 810c419..809ab13 100644 --- a/routes/api/all.js +++ b/routes/api/all.js @@ -41,6 +41,7 @@ module.exports = { res.locals.publicKey = result[0].User_PublicKey || "" res.locals.privateKey = result[0].User_PrivateKey || "" res.locals.settings = result[0].User_Settings || {} + if(res.locals.settings == null)res.locals.settings = {} next() } else { res.status(400)