statistics -> stats

This commit is contained in:
Erik 2020-08-14 22:46:24 +03:00
parent 7fd308e2f2
commit 0995017f5d

View File

@ -124,7 +124,7 @@ class MongodbTable {
}
//Statistics
statistics(options = {}) {
stats(options = {}) {
return new Promise((resolve, reject) => {
if(!this.provider._initialized) return reject(new Error('MongoDB is not connected.'));
this.collection.stats(options, (error, statistics) => {