[js] Fix permissions problem

This commit is contained in:
Chris Bianca 2017-05-30 12:28:53 +01:00
parent f82897218f
commit ba24a80e09
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export default class Query extends ReferenceBase {
modifiers: Array<DatabaseModifier>;
constructor(ref: Reference, path: string, existingModifiers?: Array<DatabaseModifier>) {
super(ref.database, path);
super(path);
this.log.debug('creating Query ', path, existingModifiers);
this.modifiers = existingModifiers ? [...existingModifiers] : [];
}

View File

@ -61,7 +61,7 @@ export default class Reference extends ReferenceBase {
query: Query;
constructor(database: FirebaseDatabase, path: string, existingModifiers?: Array<DatabaseModifier>) {
super(database.firebase, path);
super(path);
this.refId = refId++;
this.listeners = {};
this.database = database;

View File

@ -12,7 +12,7 @@ const FirebaseStorage = NativeModules.RNFirebaseStorage;
*/
export default class StorageReference extends ReferenceBase {
constructor(storage: Storage, path: string) {
super(storage.firebase, path);
super(path);
this.storage = storage;
}