Automate issuer overlay creation from ticker searches

This commit is contained in:
2026-03-19 20:44:58 -04:00
parent 17de3dd72d
commit 391d6d34ce
79 changed files with 4746 additions and 695 deletions

View File

@@ -6,7 +6,7 @@ import { companyOverviewCache, schema } from '@/lib/server/db/schema';
export const CURRENT_COMPANY_OVERVIEW_CACHE_VERSION = 1;
export type CompanyOverviewCacheRecord = {
type CompanyOverviewCacheRecord = {
id: number;
user_id: string;
ticker: string;
@@ -86,7 +86,7 @@ export async function upsertCompanyOverviewCache(input: {
return toRecord(saved);
}
export async function deleteCompanyOverviewCache(input: { userId: string; ticker: string }) {
async function deleteCompanyOverviewCache(input: { userId: string; ticker: string }) {
const normalizedTicker = input.ticker.trim().toUpperCase();
return await getDb()
@@ -97,6 +97,6 @@ export async function deleteCompanyOverviewCache(input: { userId: string; ticker
));
}
export const __companyOverviewCacheInternals = {
const __companyOverviewCacheInternals = {
CACHE_VERSION: CURRENT_COMPANY_OVERVIEW_CACHE_VERSION
};