add: create product based on csv

This commit is contained in:
ilham
2021-12-23 12:41:41 +07:00
parent ee6bcea111
commit 1d71ddd2e1
4 changed files with 22 additions and 7 deletions

View File

@@ -7,10 +7,7 @@ export async function parsingFile(dataFile) {
const results = [];
const file = createReadStream(
path.join(
process.cwd(),
'./files/Template Upload Product - Sheet1-a532.csv',
),
path.join(process.cwd(), `./files/${dataFile}`),
);
file