mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 16:17:32 +00:00
added first event
This commit is contained in:
@@ -16,11 +16,16 @@ func (a *and) Write(builder *StatementBuilder) {
|
||||
builder.WriteString("(")
|
||||
defer builder.WriteString(")")
|
||||
}
|
||||
for i, condition := range a.conditions {
|
||||
if i > 0 {
|
||||
firstCondition := true
|
||||
for _, condition := range a.conditions {
|
||||
if condition == nil {
|
||||
continue
|
||||
}
|
||||
if !firstCondition {
|
||||
builder.WriteString(" AND ")
|
||||
}
|
||||
condition.Write(builder)
|
||||
firstCondition = false
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user