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> => {
|
getPublicKey = async (): Promise<string | undefined> => {
|
||||||
logger.info(`requestGetPublicKey with endpoint='${this.endpoint}'...`)
|
logger.info(`requestGetPublicKey with endpoint='${this.endpoint}'...`)
|
||||||
|
|
||||||
const variables = {}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||||
const { data, errors, headers, status } = await this.client.rawRequest(
|
const { data, errors, headers, status } = await this.client.rawRequest(
|
||||||
getPublicKey,
|
getPublicKey
|
||||||
variables,
|
|
||||||
)
|
)
|
||||||
logger.debug(`Response-Data:`, data, errors, headers, status)
|
logger.debug(`Response-Data:`, data, errors, headers, status)
|
||||||
if (data) {
|
if (data) {
|
||||||
|
|||||||
@ -23,8 +23,8 @@ const setHeadersPlugin = {
|
|||||||
|
|
||||||
const filterVariables = (variables: any) => {
|
const filterVariables = (variables: any) => {
|
||||||
const vars = clonedeep(variables)
|
const vars = clonedeep(variables)
|
||||||
if (vars.password) vars.password = '***'
|
if (vars && vars.password) vars.password = '***'
|
||||||
if (vars.passwordNew) vars.passwordNew = '***'
|
if (vars && vars.passwordNew) vars.passwordNew = '***'
|
||||||
return vars
|
return vars
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user