Merge pull request #109 from foomo/fix/emarsys-email

fix(emarsys): use only email if provided
This commit is contained in:
Kevin Franklin Kim 2025-03-18 14:10:58 +01:00 committed by GitHub
commit 91f32ebf3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,8 @@ import (
func Logger() *slog.Logger {
verbose := viper.GetBool("verbose")
plogger := pterm.DefaultLogger.WithTime(false)
plogger := pterm.DefaultLogger.WithTime(false).WithMaxWidth(100)
if verbose {
plogger = plogger.WithLevel(pterm.LogLevelTrace).WithCaller(true)
}

View File

@ -214,8 +214,7 @@ function serializeData(mappedData) {
}
if (mappedData.email) {
slist.push("eh=" + encodeUriComponent(mappedData.email));
}
if (mappedData.customerId) {
} else if (mappedData.customerId) {
slist.push("ci=" + encodeUriComponent(mappedData.customerId));
}
if (mappedData.sessionId) {