u
This commit is contained in:
@@ -360,9 +360,9 @@ export async function executeCompanyImport({
|
||||
log.info(`Processing ${brandEntries.length} brands (Hersteller)...`);
|
||||
|
||||
// Fetch existing brands to accurately track new vs existing
|
||||
const existingBrands = await store.brand.list(googleAuthId);
|
||||
const { brands: existingBrandRows } = await store.brand.list(googleAuthId, { offset: 0, limit: 100 });
|
||||
const existingBrandNames = new Set(
|
||||
existingBrands.map((b) => (b.name || '').trim().toLowerCase()).filter(Boolean)
|
||||
existingBrandRows.map((b) => (b.name || '').trim().toLowerCase()).filter(Boolean)
|
||||
);
|
||||
|
||||
for (let i = 0; i < brandEntries.length; i++) {
|
||||
|
||||
Reference in New Issue
Block a user