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:
Christian Vidal Wolf
2026-05-20 08:10:36 +02:00
co-authored by Claude Sonnet 4.6
parent 6426b641c1
commit b31911a9df
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -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) => {