From 430c0e8bc8ca23d0b70e90b24300a9e9636a4820 Mon Sep 17 00:00:00 2001 From: Devu Gupta <145492650+Codealpha07@users.noreply.github.com> Date: Sun, 5 Apr 2026 12:08:05 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20The=20registration=20document=20uses=20`?= =?UTF-8?q?createdAt`=20and=20overwrites=20it=20on=20every=20=E2=80=A6=20o?= =?UTF-8?q?n=20Backend/src/routes/repo.ts:L614=20[tier-1-extracted]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Backend/src/routes/repo.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Backend/src/routes/repo.ts b/Backend/src/routes/repo.ts index 77e1514..439c010 100644 --- a/Backend/src/routes/repo.ts +++ b/Backend/src/routes/repo.ts @@ -611,6 +611,10 @@ repoRouter.post("/repo/:owner/:name/setup-webhook", async (c) => { githubToken: user.access_token, username: user.username, createdAt: new Date(), + updated_at: new Date(), + }, + $setOnInsert: { + created_at: new Date(), }, }, { upsert: true }