Skip to content

Patch for controllers/topicController.js#70

Open
beetle-ai[bot] wants to merge 1 commit into
mainfrom
fix/1759433011757-b4d9c
Open

Patch for controllers/topicController.js#70
beetle-ai[bot] wants to merge 1 commit into
mainfrom
fix/1759433011757-b4d9c

Conversation

@beetle-ai

@beetle-ai beetle-ai Bot commented Oct 2, 2025

Copy link
Copy Markdown

Replaced the positional operator $ with the $[] operator and added arrayFilters to update all occurrences of the old topic name in the topics array.Changes made:

  • Replaced: await Ques.updateMany( { topics: oldName }, { $set: { "topics.$": name } } );
  • With: await Ques.updateMany( { topics: oldName }, { $set: { "topics.$[element]": name } }, { arrayFilters:...

Related Issue: #3a9b2c1d-6e8f-4b5a-9c2b-1d6e8f4b5a9c

File: controllers/topicController.js
Branch: fix/1759433011757-b4d9cmain

@vercel

vercel Bot commented Oct 2, 2025

Copy link
Copy Markdown

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 2, 2025 7:24pm

@coderabbitai

coderabbitai Bot commented Oct 2, 2025

Copy link
Copy Markdown

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