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 3694be7 commit 77ef0a4Copy full SHA for 77ef0a4
lib/modules/presence.js
@@ -7,7 +7,7 @@ class PresenceRef extends ReferenceBase {
7
super(presence.firestack);
8
9
this.presence = presence;
10
- const db = this.firestack.database;
+ const db = this.firestack.database();
11
this.ref = ref;
12
this.lastOnlineRef = this.ref.child('lastOnline');
13
@@ -84,7 +84,7 @@ export default class Presence extends Base {
84
const path = this.path.concat(key);
85
const pathKey = this._presenceKey(path);
86
if (!this.instances[pathKey]) {
87
- const _ref = this.firestack.database.ref(pathKey);
+ const _ref = this.firestack.database().ref(pathKey);
88
this.log.debug('Created new presence object for ', pathKey);
89
const inst = new PresenceRef(this, _ref, path);
90
0 commit comments