mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix problem in federation when variables are not defined
This commit is contained in:
parent
1fa3396396
commit
d636f92261
@ -27,14 +27,10 @@ export class Client_1_0 {
|
||||
|
||||
getPublicKey = async (): Promise<string | undefined> => {
|
||||
logger.info(`requestGetPublicKey with endpoint='${this.endpoint}'...`)
|
||||
|
||||
const variables = {}
|
||||
|
||||
try {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
const { data, errors, headers, status } = await this.client.rawRequest(
|
||||
getPublicKey,
|
||||
variables,
|
||||
getPublicKey
|
||||
)
|
||||
logger.debug(`Response-Data:`, data, errors, headers, status)
|
||||
if (data) {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user