Skip to content

feat(addScope): Only warn no override if defaultScope is defined - #9703

Merged
sushantdhiman merged 1 commit into
sequelize:masterfrom
Lawton:no-exception-undefined-default-scope
Jul 22, 2018
Merged

sushantdhiman merged 1 commit into
sequelize:masterfrom
Lawton:no-exception-undefined-default-scope

Conversation

@Lawton

@Lawton Lawton commented Jul 22, 2018

Copy link
Copy Markdown

Pull Request check-list

Please make sure to review and check all of these items:

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

if default scope has not be defined ie. Object.keys(this.options.defaultScope).length === 0 then addScope('defaultScope', ...) does not throw an error. (Closes #9407 )

@codecov

codecov Bot commented Jul 22, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #9703 into master will not change coverage.
The diff coverage is 100%.

@sushantdhiman
sushantdhiman merged commit be8760d into sequelize:master Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants