Skip to content

Refactor: Replace deprecated 'ensureIndex' with 'createIndex' #703

@omniCoder77

Description

@omniCoder77

The ensureIndex method is deprecated in the current MongoDB driver and will be removed in a future version. This can cause issues and log warnings during application startup.

I have already updated the code to use the recommended createIndex method to ensure future compatibility and remove deprecation warnings. I will be submitting a pull request to address this shortly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions