Run playwright UI tests

This commit is contained in:
2026-03-06 14:40:43 -05:00
parent 610fce8db3
commit 8e62c66677
37 changed files with 4430 additions and 643 deletions

View File

@@ -170,3 +170,19 @@ export async function saveFilingAnalysis(
return updated ? toFiling(updated) : null;
}
export async function updateFilingMetricsById(
filingId: number,
metrics: Filing['metrics']
) {
const [updated] = await db
.update(filing)
.set({
metrics,
updated_at: new Date().toISOString()
})
.where(eq(filing.id, filingId))
.returning();
return updated ? toFiling(updated) : null;
}