Skip to content

Commit 74b233a

Browse files
committed
fixed incorrect ref.child() api, was expecting an array, api should expect a path string that is then split by '/'
1 parent 2aac6bc commit 74b233a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/modules/database/reference.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ export default class Reference extends ReferenceBase {
264264
return new Disconnect(this);
265265
}
266266

267-
child(...paths: Array<string>) {
268-
return new Reference(this.db, this.path.concat(paths));
267+
child(path: string) {
268+
return new Reference(this.db, this.path.concat(path.split('/')));
269269
}
270270

271271
toString(): string {

0 commit comments

Comments
 (0)