Skip to content
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

Expose Model classes to Schema methods #400

Merged
merged 3 commits into from
Aug 2, 2018
Merged

Conversation

dolsem
Copy link
Contributor

@dolsem dolsem commented Jul 31, 2018

Closes #397

@coveralls
Copy link

coveralls commented Jul 31, 2018

Pull Request Test Coverage Report for Build 594

  • 5 of 7 (71.43%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 84.209%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/Model.js 4 6 66.67%
Totals Coverage Status
Change from base Build 586: 0.1%
Covered Lines: 1853
Relevant Lines: 2130

💛 - Coveralls

Copy link
Member

@fishcharlie fishcharlie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good. My only question is about the changes in the lib/Attribute.js file.

lib/Attribute.js Outdated
@@ -359,7 +359,7 @@ Attribute.prototype.toDynamo = function(val, noSet, model, options) {
}

var runSet = true;
if (isTimestamp && options.updateTimestamps === false) {
if (isTimestamp && options && options.updateTimestamps === false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is this related to this PR?

@dolsem
Copy link
Contributor Author

dolsem commented Aug 1, 2018

My bad, I pushed a new commit to the same branch by mistake today, it got added to the pull request. It's all good now.

@fishcharlie fishcharlie mentioned this pull request Aug 2, 2018
@fishcharlie fishcharlie merged commit 7bed29c into dynamoose:master Aug 2, 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.

3 participants