fixed password middleware

This commit is contained in:
Grzegorz Leoniec 2018-10-19 12:28:26 +02:00
parent 98d90140a2
commit 77e744022e

View File

@ -9,7 +9,7 @@ export default {
},
Query: async (resolve, root, args, context, info) => {
const result = await resolve(root, args, context, info)
if (result.password) {
if (result && result.password) {
result.password = '*****'
}
return result