Merge branch 'master' into fix-store-problems

This commit is contained in:
Ulf Gebhardt 2023-05-05 12:58:56 +02:00 committed by GitHub
commit 569b887f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,3 +91,18 @@ export const getKlicktippTagMap = async () => {
}
return ''
}
export const addFieldsToSubscriber = async (
email: string,
fields: any = {},
newemail = '',
newsmsnumber = '',
) => {
if (!CONFIG.KLICKTIPP) return true
const isLogin = await loginKlicktippUser()
if (isLogin) {
const subscriberId = await klicktippConnector.subscriberSearch(email)
return klicktippConnector.subscriberUpdate(subscriberId, fields, newemail, newsmsnumber)
}
return false
}