We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6e6c71 commit 2367e93Copy full SHA for 2367e93
src/gridfs.ts
@@ -31,7 +31,6 @@ import {
31
UrlStorageOptions,
32
DbStorageOptions
33
} from './types';
34
-import hasOwn from "has-own-prop";
35
36
const isGeneratorFn = isGenerator.fn;
37
@@ -456,9 +455,10 @@ export class GridFsStorage extends EventEmitter implements StorageEngine {
456
455
}
457
458
if (this.client) {
459
- this.connected = hasOwn(this.client, 'isConnected')
460
- // @ts-ignore
461
- ? this.client.isConnected()
+ // @ts-ignore
+ this.connected = this.client.isConnected
+ ? // @ts-ignore
+ this.client.isConnected()
462
: true;
463
return;
464
0 commit comments