Add categoryIds to article.listSearchIndex response
This commit is contained in:
@@ -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)
|
||||
: [],
|
||||
}));
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user