Skip to content

Commit 77ef0a4

Browse files
match presence syntax with V3 database syntax
1 parent 3694be7 commit 77ef0a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/modules/presence.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class PresenceRef extends ReferenceBase {
77
super(presence.firestack);
88

99
this.presence = presence;
10-
const db = this.firestack.database;
10+
const db = this.firestack.database();
1111
this.ref = ref;
1212
this.lastOnlineRef = this.ref.child('lastOnline');
1313

@@ -84,7 +84,7 @@ export default class Presence extends Base {
8484
const path = this.path.concat(key);
8585
const pathKey = this._presenceKey(path);
8686
if (!this.instances[pathKey]) {
87-
const _ref = this.firestack.database.ref(pathKey);
87+
const _ref = this.firestack.database().ref(pathKey);
8888
this.log.debug('Created new presence object for ', pathKey);
8989
const inst = new PresenceRef(this, _ref, path);
9090

0 commit comments

Comments
 (0)