Skip to content

Commit 569be66

Browse files
committed
Fixes #185 - snapshot incorrect receiving db instance instead of the ref
1 parent 5d81ea0 commit 569be66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/modules/database/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export default class Database extends Base {
171171

172172
if (this.subscriptions[handle] && this.subscriptions[handle][eventName]) {
173173
this.subscriptions[handle][eventName].forEach((cb) => {
174-
cb(new Snapshot(this, snapshot), body);
174+
cb(new Snapshot(new Reference(this, path.split('/'), modifiersString.split('|')), snapshot), body);
175175
});
176176
} else {
177177
FirestackDatabase.off(path, modifiersString, eventName, () => {

0 commit comments

Comments
 (0)