Skip to content

Deprecation warning on database listen  #7624

Closed
@Moumouls

Description

@Moumouls

New Issue Checklist

Issue Description

Database listen warning

Steps to reproduce

Start a parse server on master branch

Actual Outcome

Mongo listen database warning

Expected Outcome

No deprecation

Environment

5.0.0-alpha.1

Parse server need to listen directly on mongo client, not on the database. Source code of the warning

        const database = client.db(options.dbName);
        if (!database) {
          delete this.connectionPromise;
          return;
        }
        database.on('error', () => {
          delete this.connectionPromise;
        });
        database.on('close', () => {
          delete this.connectionPromise;
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions