Skip to content

options is not defined when trying to connect with alternate mlab url #172

@Rupeshiya

Description

@Rupeshiya

Before you describe your issue, idea or feature, please consider using this issue template.

options is not defined when trying to connect with alternate mlab url

Type of issue:

  • Bug / Error
  • Idea / Feature
  • Improvement detail

Short description on the issue

When starting the server using npm start then the server trying to connect with localy hosted db and if error occures then trying to connect with mlab which is alternative option for db.
So there in error case options variable provided in the mongoose.connect is undefined.

Possible fix

Change options to option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions