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 @@ -573,8 +573,8 @@ export class Collection<TSchema extends Document = Document> {
573573 * @param options - Optional settings for the command
574574 */
575575 async isCapped ( options ?: OperationOptions ) : Promise < boolean > {
576- const collectionOptions = await this . options ( options ) ;
577- return Boolean ( collectionOptions ?. isCapped ) ;
576+ const { capped } = await this . options ( options ) ;
577+ return Boolean ( capped ) ;
578578 }
579579
580580 /**
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