Skip to content

Commit 93c1d6d

Browse files
Update src/collection.ts
Co-authored-by: Bailey Pearson <[email protected]>
1 parent e50c11a commit 93c1d6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ export class Collection<TSchema extends Document = Document> {
552552

553553
async findOne(
554554
filter: Filter<TSchema> = {},
555-
options: Omit<FindOneOptions, ''> & Abortable = {}
555+
options: Omit<FindOneOptions, 'timeoutMode'> & Abortable = {}
556556
): Promise<WithId<TSchema> | null> {
557557
const opts = { ...options };
558558
// Explicitly set the limit to 1 and singleBatch to true for all commands, per the spec.

0 commit comments

Comments
 (0)