Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion node/ai_code_review_bot/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions node/backend_db/src/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const db = mysql.createConnection({
});

db.connect((err) => {
if (err){
if (err.message){
throw new Error(err);
}
})
Expand Down Expand Up @@ -79,4 +79,4 @@ const checkForDbUpdates = () => {
}
}

module.exports = { db, createDB, checkForDbUpdates };
module.exports = { db, createDB, checkForDbUpdates };