Skip to content

Commit 6ea388f

Browse files
committed
fixed api db service
1 parent 7ecf8d9 commit 6ea388f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/database/api.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ ApiModel.prototype.count = function(query){
153153
return obj;
154154
};
155155

156+
157+
ApiModel.prototype.estimatedDocumentCount = function(query){
158+
return this.count(query);
159+
};
160+
161+
156162
ApiModel.prototype.find = function(query){
157163
if(!query){
158164
query = {};

0 commit comments

Comments
 (0)