From d3aeb5477a8f774953a2c93f481220990c38244c Mon Sep 17 00:00:00 2001 From: joseph le Date: Thu, 28 Sep 2023 15:51:27 +0700 Subject: [PATCH] /api/backupProduct --- start/routes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }