Skip to content

Commit

Permalink
fix listCollections
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Nov 28, 2023
1 parent 89283e0 commit 30c851b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/unit/sthDatabaseNameCodecTool_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function createRawAndAggregatedCollections(callback) {
function checkCollectionExists(databaseName, collectionName, callback) {
sthDatabase.client
.db(databaseName)
.listCollections({ name: collectionName, nameOnly: true })
.listCollections({ name: collectionName }, { nameOnly: true })
.toArray(function(err, collections) {
if (err) {
return process.nextTick(callback.bind(null, err));
Expand Down
2 changes: 1 addition & 1 deletion test/unit/sthDatabaseNameMapperTool_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function createRawAndAggregatedCollections(callback) {
function checkCollectionExists(databaseName, collectionName, callback) {
sthDatabase.client
.db(databaseName)
.listCollections({ name: collectionName, nameOnly: true })
.listCollections({ name: collectionName }, { nameOnly: true })
.toArray(function(err, collections) {
if (err) {
return process.nextTick(callback.bind(null, err));
Expand Down

0 comments on commit 30c851b

Please sign in to comment.