Update backend/src/middleware/passwordMiddleware.js

Co-Authored-By: Tirokk <wolle.huss@pjannto.com>
This commit is contained in:
Robert Schäfer 2019-04-12 17:32:20 +02:00 committed by GitHub
parent 023c636017
commit 0c8b478ce2

View File

@ -12,7 +12,7 @@ export default {
},
Query: async (resolve, root, args, context, info) => {
let result = await resolve(root, args, context, info)
result = walkRecursive(result, ['password', 'privatKey'], () => {
result = walkRecursive(result, ['password', 'privateKey'], () => {
// replace password with asterisk
return '*****'
})