diff --git a/start/routes.ts b/start/routes.ts index eba0878..947c161 100644 --- a/start/routes.ts +++ b/start/routes.ts @@ -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); }