Skip to content

Commit 7d8bb7d

Browse files
ryansmith3136claude
andcommitted
bugfix empty string bypass in account_limits view
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 96de136 commit 7d8bb7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fe/src/schema.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ create view account_limits as
100100
with current_plans as (
101101
select distinct on (owner_email) owner_email, rate, timeout, connections, queries
102102
from plan_changes
103-
where (daimo_tx is not null or stripe_customer is not null)
103+
where (daimo_tx is not null and daimo_tx != '')
104+
or (stripe_customer is not null and stripe_customer != '')
104105
order by owner_email, created_at desc
105106
)
106107
select

0 commit comments

Comments
 (0)