initialize settings as empty object

instead of "null"
This commit is contained in:
Mystikfluu 2022-07-25 19:07:13 +02:00
parent 2b42c2f1a7
commit b942dd73cd

View File

@ -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)