From df47ba1ea236e6b4fdb3dc04b529e6e5df1ed34d Mon Sep 17 00:00:00 2001 From: SrIzan10 <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 1 Oct 2022 23:07:23 +0200 Subject: [PATCH] fix: userid wasn't saved to the db --- index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/index.ts b/index.ts index 17b261d..c574101 100644 --- a/index.ts +++ b/index.ts @@ -45,6 +45,7 @@ app.post("/sern/newTime", async (req, res, next) => { const saveToDB = new sernTime({ name: req.body.name, timezone: req.body.timezone, + userid: req.body.userid }) saveToDB.save() res.json({ "ok": "kay done" })