Skip to content

useless "scope defaultScope already exists" exception #9407

Closed

Description

@FranckFreiburger

What do you expect to happen?

addScope('defaultScope', ...) should not throw Error('The scope ' + name + ' already exists. Pass { override: true } as options to silence this error'); if default scope has not be defined
ie. Object.keys(this.options.defaultScope).length === 0

Sequelize version: latest 4.x

Activity

  1. added
    good first issue
    on May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions