Skip to content

Commit

Permalink
hotfix(AnonymousUser): trackID不为空,仍然上报匿名id(比如web_id)
Browse files Browse the repository at this point in the history
  • Loading branch information
oMinGWo committed Nov 25, 2024
1 parent e0c8569 commit b4e2f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/util/msgbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func CreateExposureEvent(vid, uuidType string) *model.Event {

func CreateUser(trackId, uuidType string, attributes map[string]interface{},
enableAnonymousUser, isSaasEnv bool) *model.User {
if enableAnonymousUser && trackId == "" && attributes != nil {
if (enableAnonymousUser || trackId == "") && attributes != nil {
return CreateAnonymousUser(trackId, uuidType, attributes, isSaasEnv)
}
return &model.User{
Expand Down

0 comments on commit b4e2f6d

Please sign in to comment.