Skip to content

Commit

Permalink
fix(storage): Typo in updateMetadata method (#2029)
Browse files Browse the repository at this point in the history
updateMetatdata should be updateMetadata, keep the old method name for backward compatibility
  • Loading branch information
s2young authored and jamesdaniels committed May 8, 2019
1 parent 64369af commit 6133296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/storage/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface AngularFireStorageReference {
delete(): Observable<any>;
child(path: string): any;
updateMetatdata(meta: SettableMetadata): Observable<any>;
updateMetadata(meta: SettableMetadata): Observable<any>;
put(data: any, metadata?: UploadMetadata | undefined): AngularFireUploadTask;
putString(data: string, format?: string | undefined, metadata?: UploadMetadata | undefined): AngularFireUploadTask;
}
Expand All @@ -33,6 +34,7 @@ export function createStorageRef(ref: Reference, scheduler: FirebaseZoneSchedule
delete: () => from(ref.delete()),
child: (path: string) => createStorageRef(ref.child(path), scheduler),
updateMetatdata: (meta: SettableMetadata) => from(ref.updateMetadata(meta)),
updateMetadata: (meta: SettableMetadata) => from(ref.updateMetadata(meta)),
put: (data: any, metadata?: UploadMetadata) => {
const task = ref.put(data, metadata);
return createUploadTask(task);
Expand Down

0 comments on commit 6133296

Please sign in to comment.