Skip to content

Commit 5884e3c

Browse files
committed
forEach return now child snapshot like Web SDK
1 parent a45601b commit 5884e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modules/database/snapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class Snapshot {
5151
}
5252

5353
forEach(fn: (key: any) => any) {
54-
return this.childKeys.forEach((key, i) => fn(this.value[key], i));
54+
return this.childKeys.forEach((key, i) => fn(this.child(key), i));
5555
}
5656

5757
getPriority() {

0 commit comments

Comments
 (0)