Fix annual financial selector and QCOM standardization

This commit is contained in:
2026-03-09 18:50:59 -04:00
parent 1a18ac825d
commit 9f972305e6
9 changed files with 3385 additions and 226 deletions

View File

@@ -3,6 +3,7 @@ import type {
FinancialSurfaceKind
} from '@/lib/types';
import {
CURRENT_COMPANY_FINANCIAL_BUNDLE_VERSION,
getCompanyFinancialBundle,
upsertCompanyFinancialBundle
} from '@/lib/server/repos/company-financial-bundles';
@@ -28,7 +29,11 @@ export async function readCachedFinancialBundle(input: {
cadence: input.cadence
});
if (!cached || cached.source_signature !== sourceSignature) {
if (
!cached
|| cached.bundle_version !== CURRENT_COMPANY_FINANCIAL_BUNDLE_VERSION
|| cached.source_signature !== sourceSignature
) {
return null;
}