From de8099aa205401318215b8976f38f3febce047ac Mon Sep 17 00:00:00 2001 From: Omer Sabic Date: Fri, 7 Jun 2024 21:37:59 +0200 Subject: [PATCH] removing id from db update --- src/routes/dashboard.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/dashboard.js b/src/routes/dashboard.js index 7259bcd..9d71775 100644 --- a/src/routes/dashboard.js +++ b/src/routes/dashboard.js @@ -354,6 +354,7 @@ export const dashboardRoutes = (fastify, _, done) => { }); } + req.body.id = undefined; await db.update(sites).set(req.body); return {