Skip to content

Commit

Permalink
fix(global): count warning 馃悰
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Jul 16, 2020
1 parent 5ab49ea commit e00f396
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/apis/repositories/apis.repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ exports.historize = (api, history) => Api.updateOne(
* @desc Function to get collection stats
* @return {Object} scrap
*/
exports.stats = () => Api.count();
exports.stats = () => Api.countDocuments();

/**
* @desc Function to insert list of data in db
Expand Down
2 changes: 1 addition & 1 deletion modules/historys/repositories/historys.repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ exports.get = (id) => {
* @desc Function to get collection stats
* @return {Object} scrap
*/
exports.stats = () => History.count();
exports.stats = () => History.countDocuments();

0 comments on commit e00f396

Please sign in to comment.