Skip to content

Commit 50b709f

Browse files
committed
Fix warning when running off() on databsae reference
1 parent 6183ab1 commit 50b709f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/modules/database/reference.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export default class Reference extends ReferenceBase {
125125
off(evt: string = '', origCB?: () => any) {
126126
const path = this.dbPath();
127127
const modifiers = this.query.getModifiers();
128+
const modifiersString = this.query.getModifiersString();
128129
this.log.debug('ref.off(): ', path, modifiers, evt);
129130
return this.db.unstoreRef(this.uid).then(() => {
130131
return this.db.off(this.uid, path, modifiersString, modifiers, evt, origCB).then(subscriptions => {

0 commit comments

Comments
 (0)