File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1691,7 +1691,7 @@ describe('Database', () => {
1691
1691
await database . stats ( 1 ) ;
1692
1692
1693
1693
expect ( serviceProvider . runCommandWithCheck ) . to . have . been . calledWith (
1694
- ADMIN_DB ,
1694
+ database . _name ,
1695
1695
{
1696
1696
dbStats : 1 ,
1697
1697
scale : 1
@@ -1703,7 +1703,7 @@ describe('Database', () => {
1703
1703
await database . stats ( ) ;
1704
1704
1705
1705
expect ( serviceProvider . runCommandWithCheck ) . to . have . been . calledWith (
1706
- ADMIN_DB ,
1706
+ database . _name ,
1707
1707
{
1708
1708
dbStats : 1 ,
1709
1709
scale : 1
Original file line number Diff line number Diff line change @@ -825,7 +825,7 @@ export default class Database extends ShellApiClass {
825
825
@returnsPromise
826
826
async stats ( scale = 1 ) : Promise < Document > {
827
827
this . _emitDatabaseApiCall ( 'stats' , { scale : scale } ) ;
828
- return await this . _runAdminCommand (
828
+ return await this . _runCommand (
829
829
{
830
830
dbStats : 1 ,
831
831
scale : scale
You can’t perform that action at this time.
0 commit comments