fix: removing the check mandating 2 steps needed to create a funnel

This commit is contained in:
Ankit Nayan 2025-07-07 16:45:36 +05:30
parent 273452352d
commit 861affa98e

View File

@ -27,9 +27,9 @@ func ValidateTimestampIsMilliseconds(timestamp int64) bool {
} }
func ValidateFunnelSteps(steps []*FunnelStep) error { func ValidateFunnelSteps(steps []*FunnelStep) error {
if len(steps) < 2 { // if len(steps) < 2 {
return fmt.Errorf("funnel must have at least 2 steps") // return fmt.Errorf("funnel must have at least 2 steps")
} // }
for i, step := range steps { for i, step := range steps {
if step.ServiceName == "" { if step.ServiceName == "" {