mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 12:25:22 +02:00
fix: exclude 2023 data across sales and ads (incomplete year)
Filter sales records with year > 2023 and skip ads Excel sheets for year <= 2023. Bump schema version to 4 to invalidate cached 2023 records in IndexedDB. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
6426b641c1
commit
b31911a9df
+1
-1
@@ -7,7 +7,7 @@ const ADS_STORE_NAME = 'adsData';
|
||||
const DB_VERSION = 2;
|
||||
// Increment this when data processing logic changes (e.g., field mapping changes)
|
||||
// This forces cache invalidation and re-processing of CSV data
|
||||
const DATA_SCHEMA_VERSION = 3; // Updated to clear broken Ads data
|
||||
const DATA_SCHEMA_VERSION = 4; // Exclude 2023 data (incomplete year)
|
||||
|
||||
const initDB = (): Promise<IDBDatabase> => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user