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()
|
||||
if (isLogin) {
|
||||
try {
|
||||
logger.info(`Update of subscriber (${email}) has been successful`)
|
||||
const result = await klicktippConnector.subscriberUpdate(
|
||||
logger.info('Updating of subscriber', email)
|
||||
return klicktippConnector.subscriberUpdate(
|
||||
await klicktippConnector.subscriberSearch(email),
|
||||
fields,
|
||||
newemail,
|
||||
newsmsnumber,
|
||||
)
|
||||
return result
|
||||
} catch (e) {
|
||||
logger.error('Could not update subscriber', email, JSON.stringify(fields), e)
|
||||
return false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user