Skip to content

Commit bdf8736

Browse files
fix bad variable name
1 parent c698681 commit bdf8736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/db.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,9 @@ export class Db {
435435
*/
436436
async collections(options?: ListCollectionsOptions): Promise<Collection[]> {
437437
options = resolveOptions(this, options);
438-
const documents = await this.listCollections({}, { ...options, nameOnly: true }).toArray();
438+
const collections = await this.listCollections({}, { ...options, nameOnly: true }).toArray();
439439

440-
return documents
440+
return collections
441441
.filter(
442442
// Filter collections removing any illegal ones
443443
({ name }) => !name.includes('$')

0 commit comments

Comments
 (0)