mirror of
https://github.com/foomo/sesamy-cli.git
synced 2025-10-16 12:35:36 +00:00
Merge pull request #109 from foomo/fix/emarsys-email
fix(emarsys): use only email if provided
This commit is contained in:
commit
91f32ebf3b
@ -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)
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user