feat(sync): full code sync from release
This commit is contained in:
@@ -362,7 +362,12 @@ func buildUsageCleanupWhere(filters service.UsageCleanupFilters) (string, []any)
|
||||
idx++
|
||||
}
|
||||
}
|
||||
if filters.Stream != nil {
|
||||
if filters.RequestType != nil {
|
||||
condition, conditionArgs := buildRequestTypeFilterCondition(idx, *filters.RequestType)
|
||||
conditions = append(conditions, condition)
|
||||
args = append(args, conditionArgs...)
|
||||
idx += len(conditionArgs)
|
||||
} else if filters.Stream != nil {
|
||||
conditions = append(conditions, fmt.Sprintf("stream = $%d", idx))
|
||||
args = append(args, *filters.Stream)
|
||||
idx++
|
||||
|
||||
Reference in New Issue
Block a user