importProductsFromCsv
chainalign-backend / services/ProductService / importProductsFromCsv
Function: importProductsFromCsv()
importProductsFromCsv(
filePath,tenantId):Promise<any>
Defined in: services/ProductService.js:12
Parses a Product Master CSV, inserts the data, and then enriches it with AI-generated insights.
Parameters
filePath
string
The path to the uploaded CSV file.
tenantId
string
The ID of the tenant this data belongs to.
Returns
Promise<any>
- A promise that resolves with the results of the import and enrichment.