From 5aa8435aff1e2a2d65cd2170ba8600745e21f4b7 Mon Sep 17 00:00:00 2001 From: Chris Bianca Date: Tue, 28 Nov 2017 09:21:41 +0000 Subject: [PATCH] [firestore] Fix incorrect references --- lib/modules/firestore/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/firestore/index.js b/lib/modules/firestore/index.js index 8d463a20..1ffd11c9 100644 --- a/lib/modules/firestore/index.js +++ b/lib/modules/firestore/index.js @@ -101,7 +101,7 @@ export default class Firestore extends FirestoreInternalModule { * @returns {CollectionReference} */ collection(collectionPath: string): CollectionReference { - const path = super._referencePath.child(collectionPath); + const path = this._referencePath.child(collectionPath); if (!path.isCollection) { throw new Error('Argument "collectionPath" must point to a collection.'); } @@ -115,7 +115,7 @@ export default class Firestore extends FirestoreInternalModule { * @returns {DocumentReference} */ doc(documentPath: string): DocumentReference { - const path = super._referencePath.child(documentPath); + const path = this._referencePath.child(documentPath); if (!path.isDocument) { throw new Error('Argument "documentPath" must point to a document.'); }