Skip to content

Commit 8bb18b4

Browse files
authored
fix: plan listing invalid filter (#2451)
1 parent e22bce9 commit 8bb18b4

File tree

1 file changed

+1
-1
lines changed
  • openmeter/productcatalog/plan/adapter

1 file changed

+1
-1
lines changed

openmeter/productcatalog/plan/adapter/plan.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (a *adapter) ListPlans(ctx context.Context, params plan.ListPlansInput) (pa
9999

100100
if slices.Contains(params.Status, productcatalog.InvalidStatus) {
101101
predicates = append(predicates, func(s *sql.Selector) {
102-
s.Where(sql.ColumnsLT(plandb.FieldEffectiveFrom, plandb.FieldEffectiveTo))
102+
s.Where(sql.ColumnsLT(plandb.FieldEffectiveTo, plandb.FieldEffectiveFrom))
103103
})
104104
}
105105

0 commit comments

Comments
 (0)