Skip to content

Fixing findOrCreate and findCreateFind #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2017

Conversation

kingjerod
Copy link
Contributor

  1. Fixing findOrCreate to allow any values or a specific interface A. This matches the findOrBuild definition.

  2. Fixing findCreateFind to return the correct value [Model, boolean], and also apply the same fix as @Column and @PrimaryKey annotation do not work together properly #1.

1) Fixing findOrCreate to allow any values or a specific interface A. This matches the findOrBuild definition.

2) Fixing findCreateFind to return the correct value [Model, boolean], and also apply the same fix as sequelize#1.
@codecov-io
Copy link

Codecov Report

Merging #64 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   95.57%   95.57%           
=======================================
  Files          65       65           
  Lines         745      745           
  Branches      101      101           
=======================================
  Hits          712      712           
  Misses         11       11           
  Partials       22       22

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3e0ea5e...9a54f22. Read the comment docs.

@RobinBuschmann
Copy link
Member

@kingjerod Looks good, thanks for fixing!

@RobinBuschmann RobinBuschmann merged commit e54c185 into sequelize:master Jul 22, 2017
@kingjerod kingjerod deleted the patch-2 branch July 23, 2017 04:48
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.

3 participants