Fix annual financial selector and QCOM standardization
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user