add: create product based on csv
This commit is contained in:
@@ -50,8 +50,8 @@ export class ProductService {
|
||||
return this.productRepository.findOneOrFail(result.identifiers[0].id);
|
||||
}
|
||||
|
||||
async processUploadCSV() {
|
||||
const data = await parsingFile('');
|
||||
async processUploadCSV(uploadFile: string) {
|
||||
const data = await parsingFile(uploadFile);
|
||||
data.shift();
|
||||
await Promise.all(
|
||||
data.map(async (it) => {
|
||||
|
||||
Reference in New Issue
Block a user