[js] Fix permissions problem
This commit is contained in:
parent
f82897218f
commit
ba24a80e09
|
@ -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] : [];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue