Skip to content

Conversation

omniCoder77
Copy link

Description

This pull request addresses the use of the deprecated ensureIndex() method in the database initialization logic. The method is no longer recommended by the MongoDB driver and produces deprecation warnings in the logs.

To align with best practices and ensure future compatibility, this change replaces all instances of ensureIndex() with the modern equivalent, createIndex().

Closes #703

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor: Replace deprecated 'ensureIndex' with 'createIndex'
2 participants