From bb3bf12252cabd3b5a9a13228c7783adcbb718a8 Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:42:27 +0200 Subject: [PATCH 1/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index a502f70..336f43d 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 Server running on port ${PORT}`)); From 2faacfc5a6dd4265f201654066f990d46957e30a Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:45:40 +0200 Subject: [PATCH 2/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index 336f43d..445ea4f 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 Server running on port ${PORT}`)); From 2d70a82eb9db931abfd7a9b3dde3a660e01f8090 Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:51:15 +0200 Subject: [PATCH 3/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index 445ea4f..f4e3a71 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 ******** Server running on port ${PORT}`)); From 6982c2459839f5acb3945757a4c3ebc37fb0577b Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 12:56:25 +0200 Subject: [PATCH 4/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index f4e3a71..ac40501 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 ******** Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 /========/ Server running on port ${PORT}`)); From 91442e2559933607f39325982a0c97276b0ecd78 Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 14:56:37 +0200 Subject: [PATCH 5/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index ac40501..c4e3188 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 /========/ Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 /====0000-0000====/ Server running on port ${PORT}`)); From 5e0ec86499bee27d8bcd36538ab8ff0add8b8b60 Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:29:44 +0200 Subject: [PATCH 6/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index c4e3188..c0f236c 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 /====0000-0000====/ Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 /====0000**&&**0000====/ Server running on port ${PORT}`)); From 405496693700d0e62cc7ec312983c2a5a0c675ee Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:37:49 +0200 Subject: [PATCH 7/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index c0f236c..a502f70 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -70,4 +70,4 @@ app.post("/webhook", async (req, res) => { res.sendStatus(200); }); -app.listen(PORT, () => console.log(`🚀 /====0000**&&**0000====/ Server running on port ${PORT}`)); +app.listen(PORT, () => console.log(`🚀 Server running on port ${PORT}`)); From 105a401f80d965b54360ad494cabb8ec27cf6a73 Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:44:22 +0200 Subject: [PATCH 8/9] Update db.js --- node/backend_db/src/db.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/backend_db/src/db.js b/node/backend_db/src/db.js index fde3506..82ccb69 100644 --- a/node/backend_db/src/db.js +++ b/node/backend_db/src/db.js @@ -10,7 +10,7 @@ const db = mysql.createConnection({ }); db.connect((err) => { - if (err){ + if (err.message){ throw new Error(err); } }) @@ -79,4 +79,4 @@ const checkForDbUpdates = () => { } } -module.exports = { db, createDB, checkForDbUpdates }; \ No newline at end of file +module.exports = { db, createDB, checkForDbUpdates }; From 3f70b001dbcf7e2b03197a861f4ad554b3419244 Mon Sep 17 00:00:00 2001 From: Relebohile Nkosi <32488818+RelCode@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:50:27 +0200 Subject: [PATCH 9/9] Update index.ts --- node/ai_code_review_bot/src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/node/ai_code_review_bot/src/index.ts b/node/ai_code_review_bot/src/index.ts index a502f70..fc39795 100644 --- a/node/ai_code_review_bot/src/index.ts +++ b/node/ai_code_review_bot/src/index.ts @@ -37,7 +37,6 @@ app.post("/webhook", async (req, res) => { }); // Cap the codeToReview length to 8000 tokens - const maxTokens = 8000; if (codeToReview.length > maxTokens) { codeToReview = codeToReview.substring(0, maxTokens); }