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 }