Skip to content

Commit 6a96514

Browse files
committed
Fix issue with database ref from push() being an array
1 parent 1df9d5c commit 6a96514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/modules/database/reference.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default class Reference extends ReferenceBase {
8585
const _value = this._serializeAnyType(value);
8686
return promisify('push', FirestackDatabase)(path, _value)
8787
.then(({ ref }) => {
88-
const newRef = new Reference(this.db, ref.split('/'));
88+
const newRef = new Reference(this.db, ref);
8989
if (isFunction(onComplete)) return onComplete(null, newRef);
9090
return newRef;
9191
}).catch((e) => {

0 commit comments

Comments
 (0)