Skip to content

Commit 6180ffa

Browse files
gregnrsweatybridge
andauthored
fix: project status pricing logic
Co-authored-by: Han Qiao <qiao@supabase.io>
1 parent eb3b61e commit 6180ffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mcp-server-supabase/src/pricing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export async function getNextProjectCost(
4747
const org = orgResponse.data;
4848
const activeProjects = projectsResponse.data.filter(
4949
(project) =>
50-
project.organization_id === orgId && project.status === 'ACTIVE_HEALTHY'
50+
project.organization_id === orgId && !['INACTIVE', 'GOING_DOWN', 'REMOVED'].includes(project.status)
5151
);
5252

5353
let amount = 0;

0 commit comments

Comments
 (0)