File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -607,8 +607,8 @@ export class Collection<TSchema extends Document = Document> {
607607 * @param options - Optional settings for the command
608608 */
609609 async isCapped ( options ?: OperationOptions ) : Promise < boolean > {
610- const collectionOptions = await this . options ( options ) ;
611- return Boolean ( collectionOptions ?. isCapped ) ;
610+ const { capped } = await this . options ( options ) ;
611+ return Boolean ( capped ) ;
612612 }
613613
614614 /**
Original file line number Diff line number Diff line change @@ -359,13 +359,13 @@ export class Db {
359359 ) : ListCollectionsCursor < CollectionInfo > ;
360360 listCollections <
361361 T extends Pick < CollectionInfo , 'name' | 'type' > | CollectionInfo =
362- | Pick < CollectionInfo , 'name' | 'type' >
363- | CollectionInfo
362+ | Pick < CollectionInfo , 'name' | 'type' >
363+ | CollectionInfo
364364 > ( filter ?: Document , options ?: ListCollectionsOptions & Abortable ) : ListCollectionsCursor < T > ;
365365 listCollections <
366366 T extends Pick < CollectionInfo , 'name' | 'type' > | CollectionInfo =
367- | Pick < CollectionInfo , 'name' | 'type' >
368- | CollectionInfo
367+ | Pick < CollectionInfo , 'name' | 'type' >
368+ | CollectionInfo
369369 > (
370370 filter : Document = { } ,
371371 options : ListCollectionsOptions & Abortable = { }
You can’t perform that action at this time.
0 commit comments