Skip to content

Commit 9b62815

Browse files
committed
fix: lint
1 parent f93b4f7 commit 9b62815

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,10 @@ export type { CreateCollectionOptions } from './operations/create_collection';
238238
export type { DeleteOptions, DeleteResult, DeleteStatement } from './operations/delete';
239239
export type { DistinctOptions } from './operations/distinct';
240240
export type { DropCollectionOptions, DropDatabaseOptions } from './operations/drop';
241-
export type { EstimatedDocumentCountOptions } from './operations/estimated_document_count';
241+
export type {
242+
EstimatedDocumentCountOptions,
243+
EstimatedDocumentCountOptionsV1
244+
} from './operations/estimated_document_count';
242245
export type { EvalOptions } from './operations/eval';
243246
export type { FindOptions } from './operations/find';
244247
export type { Sort, SortDirection } from './sort';

src/operations/estimated_document_count.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Document } from '../bson';
55
import type { Server } from '../sdam/server';
66
import type { Collection } from '../collection';
77
import type { ClientSession } from '../sessions';
8-
import { MongoError } from '../error';
98

109
/**
1110
* All supported options, including legacy options
@@ -62,7 +61,9 @@ export class EstimatedDocumentCountOperation extends CommandOperation<number> {
6261
{ $collStats: { count: {} } },
6362
{ $group: { _id: 1, n: { $sum: '$count' } } }
6463
];
64+
6565
cmd = { aggregate: this.collectionName, pipeline, cursor: {} };
66+
6667
if (typeof options.maxTimeMS === 'number') {
6768
cmd.maxTimeMS = options.maxTimeMS;
6869
}

0 commit comments

Comments
 (0)