added first event

This commit is contained in:
Iraq Jaber
2025-07-22 16:06:22 +01:00
parent 1b3abeea92
commit 46958de19f
5 changed files with 466 additions and 38 deletions

View File

@@ -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
}
}