mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Update logging.
This commit is contained in:
parent
81754449e9
commit
5de921f4f3
@ -66,14 +66,13 @@ export const addFieldsToSubscriber = async (
|
|||||||
const isLogin = await loginKlicktippUser()
|
const isLogin = await loginKlicktippUser()
|
||||||
if (isLogin) {
|
if (isLogin) {
|
||||||
try {
|
try {
|
||||||
logger.info(`Update of subscriber (${email}) has been successful`)
|
logger.info('Updating of subscriber', email)
|
||||||
const result = await klicktippConnector.subscriberUpdate(
|
return klicktippConnector.subscriberUpdate(
|
||||||
await klicktippConnector.subscriberSearch(email),
|
await klicktippConnector.subscriberSearch(email),
|
||||||
fields,
|
fields,
|
||||||
newemail,
|
newemail,
|
||||||
newsmsnumber,
|
newsmsnumber,
|
||||||
)
|
)
|
||||||
return result
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
logger.error('Could not update subscriber', email, JSON.stringify(fields), e)
|
logger.error('Could not update subscriber', email, JSON.stringify(fields), e)
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user