Skip to content

Conversation

@samniisan
Copy link
Contributor

@samniisan samniisan commented May 30, 2017

@codecov-io
Copy link

codecov-io commented May 30, 2017

Codecov Report

Merging #224 into 5.x will increase coverage by 0.12%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              5.x     #224      +/-   ##
==========================================
+ Coverage   98.15%   98.27%   +0.12%     
==========================================
  Files          17       17              
  Lines        1953     2032      +79     
  Branches      556      584      +28     
==========================================
+ Hits         1917     1997      +80     
+ Misses         36       35       -1
Impacted Files Coverage Δ
src/Collection.js 96.85% <100%> (+1.03%) ⬆️
src/Kuzzle.js 98.93% <0%> (+0.17%) ⬆️

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 97b48ef...aadbb92. Read the comment docs.

},
self = this;

if (!Array.isArray(documents)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

open question: would it be simpler to send this error in the callback? Else, the end-user will have to write somehting like

try {
  collection.mcreate(docs, function (error, response) {
    if (error) {
      // 1st error handling
    }
  });
}
catch (e) {
  // 2nd error handling
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, I will update this and let you know 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

@ballinette ballinette merged commit ec13b7f into 5.x Jun 1, 2017
@ballinette ballinette deleted the 6-m-methods branch June 1, 2017 15:07
@scottinet scottinet mentioned this pull request Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants