mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 15:05:22 +02:00
fix: increment DB version and improve ads parsing robustness
This commit is contained in:
@@ -357,7 +357,7 @@ export const processAdsExcel = async (fileOrBuffer: File | ArrayBuffer): Promise
|
||||
const arrayBuffer = fileOrBuffer instanceof File
|
||||
? await fileOrBuffer.arrayBuffer()
|
||||
: fileOrBuffer;
|
||||
const workbook = XLSX.read(arrayBuffer);
|
||||
const workbook = XLSX.read(arrayBuffer, { type: 'array' });
|
||||
const allData: AdsRecord[] = [];
|
||||
|
||||
// Process ALL sheets (e.g., "2025", "2026")
|
||||
|
||||
Reference in New Issue
Block a user