Skip to content

Commit 483e15f

Browse files
Fixed a typo that was causing an error
1 parent a4a115f commit 483e15f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/modules/database.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class DatabaseRef extends ReferenceBase {
232232
const path = this.dbPath();
233233
return this.db.off(path, evt, origCB)
234234
.then(({callback, subscriptions}) => {
235-
if (dbSubscriptions[path] && dbSubscriptions[path][evt].length > 0) {
235+
if (subscriptions[path] && subscriptions[path][evt].length > 0) {
236236
return subscriptions;
237237
}
238238

@@ -514,4 +514,4 @@ export class Database extends Base {
514514
}
515515
}
516516

517-
export default Database
517+
export default Database

0 commit comments

Comments
 (0)