/api/backupProduct
This commit is contained in:
parent
c71aa2f9c9
commit
d3aeb5477a
|
|
@ -387,7 +387,8 @@ Route.post("/api/backupProduct", async ({ request, response }) => {
|
|||
res.data[index].line = res.data[index].line.join(",")
|
||||
})
|
||||
|
||||
await Product.createMany(res.data)
|
||||
const addProduct = await Product.createMany(res.data)
|
||||
console.log(addProduct)
|
||||
} catch (error) {
|
||||
response.status(500).send(error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue