initialize settings as empty object
instead of "null"
This commit is contained in:
parent
2b42c2f1a7
commit
b942dd73cd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user