Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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 1 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 4 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 };
Morty Proxy This is a proxified and sanitized view of the page, visit original site.