fix logger middleware to not throw errors when variables cannot be parsed properly

This commit is contained in:
Ulf Gebhardt 2023-01-02 14:42:27 +01:00
parent 1553ff0964
commit 68bd762cd1
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

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
}