Fix budget incident resolution edge cases

This commit is contained in:
Dotta
2026-03-16 16:48:13 -05:00
parent 1990b29018
commit 8fbbc4ada6
7 changed files with 9259 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
import { sql } from "drizzle-orm";
import { index, integer, pgTable, text, timestamp, uuid, uniqueIndex } from "drizzle-orm/pg-core";
import { approvals } from "./approvals.js";
import { budgetPolicies } from "./budget_policies.js";
@@ -36,6 +37,6 @@ export const budgetIncidents = pgTable(
table.policyId,
table.windowStart,
table.thresholdType,
),
).where(sql`${table.status} <> 'dismissed'`),
}),
);