Skip to content

Commit fa3a115

Browse files
author
Snowflake107
committed
Merge branch 'main' of https://github.com/Snowflake107/quickmongo into main
2 parents 4fc7838 + 7ddfa7c commit fa3a115

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class Base extends EventEmitter {
9595
* @type {("DISCONNECTED"|"CONNECTED"|"CONNECTING"|"DISCONNECTING")}
9696
*/
9797
get state() {
98-
if (!this.connection || typeof this.connection.readyStaet !== "number") return "DISCONNECTED";
98+
if (!this.connection || typeof this.connection.readyState !== "number") return "DISCONNECTED";
9999
switch(this.connection.readyState) {
100100
case 0:
101101
return "DISCONNECTED";
@@ -131,4 +131,4 @@ class Base extends EventEmitter {
131131
* @example db.on("debug", console.log);
132132
*/
133133

134-
module.exports = Base;
134+
module.exports = Base;

0 commit comments

Comments
 (0)