Run playwright UI tests
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user