mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
fixed password middleware
This commit is contained in:
parent
98d90140a2
commit
77e744022e
@ -9,7 +9,7 @@ export default {
|
|||||||
},
|
},
|
||||||
Query: async (resolve, root, args, context, info) => {
|
Query: async (resolve, root, args, context, info) => {
|
||||||
const result = await resolve(root, args, context, info)
|
const result = await resolve(root, args, context, info)
|
||||||
if (result.password) {
|
if (result && result.password) {
|
||||||
result.password = '*****'
|
result.password = '*****'
|
||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user