Skip to content

Commit f5ed4a1

Browse files
committed
Fix incorrect db path
1 parent bd574be commit f5ed4a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modules/database/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default class Database extends Base {
192192

193193
if (this.subscriptions[handle] && this.subscriptions[handle][eventName]) {
194194
this.subscriptions[handle][eventName].forEach((cb) => {
195-
cb(new Snapshot(new Reference(this, path.split('/'), modifiersString.split('|')), snapshot), body);
195+
cb(new Snapshot(new Reference(this, path, modifiersString.split('|')), snapshot), body);
196196
});
197197
} else {
198198
FirestackDatabase.off(path, modifiersString, eventName, () => {

0 commit comments

Comments
 (0)