Skip to content

Comments

Patch for controllers/chapterController.js#82

Open
beetle-ai[bot] wants to merge 1 commit intomainfrom
fix/1760357140004-ooo88
Open

Patch for controllers/chapterController.js#82
beetle-ai[bot] wants to merge 1 commit intomainfrom
fix/1760357140004-ooo88

Conversation

@beetle-ai
Copy link

@beetle-ai beetle-ai bot commented Oct 13, 2025

Added a check to see if a topic with the same name already exists before creating a new topic. If it exists, the existing topic is used. Otherwise, a new topic is created and saved.Changes made:

  • Replaced: if (Array.isArray(topics)) { for (const topicName of topics) { const newTopic = new Topic({ name: to...
  • With: if (Array.isArray(topics)) { for (const topicName of topics) { let existingTopic = await Topic.findO...

Closes: #81

File: controllers/chapterController.js
Branch: fix/1760357140004-ooo88main

@vercel
Copy link

vercel bot commented Oct 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
question-bank-api Ready Ready Preview Comment Oct 13, 2025 0:06am

@coderabbitai
Copy link

coderabbitai bot commented Oct 13, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants