Merge pull request #2503 from gradido/fix_logger_middleware

fix(backend): fix logger middleware
This commit is contained in:
Ulf Gebhardt 2023-01-09 20:29:53 +01:00 committed by GitHub
commit 4c2a609f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,8 +23,8 @@ const setHeadersPlugin = {
const filterVariables = (variables: any) => {
const vars = clonedeep(variables)
if (vars.password) vars.password = '***'
if (vars.passwordNew) vars.passwordNew = '***'
if (vars && vars.password) vars.password = '***'
if (vars && vars.passwordNew) vars.passwordNew = '***'
return vars
}