Skip to content

Conversation

@beetles-ai
Copy link

@beetles-ai beetles-ai bot commented Oct 2, 2025

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
Copy link

vercel bot commented Oct 2, 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 2, 2025 7:24pm

@coderabbitai
Copy link

coderabbitai bot commented Oct 2, 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.

1 participant