Add categoryIds to article.listSearchIndex response

This commit is contained in:
seb
2026-08-03 22:33:46 +02:00
parent 84bb561031
commit c8b1a73b62
3 changed files with 12 additions and 2 deletions

View File

@@ -18,6 +18,9 @@ export default function listSearchIndex(pool) {
sku: row.sku,
name: row.name,
eans: row.eansJson ? JSON.parse(row.eansJson).map((r) => r.ean) : [],
categoryIds: row.categoryIdsJson
? JSON.parse(row.categoryIdsJson).map((r) => r.category_id)
: [],
}));
};
}