Skip to content

Commit 9e46b30

Browse files
Arnav DadaryaArnav Dadarya
authored andcommitted
Update changes
1 parent cae1dd0 commit 9e46b30

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/storage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
ref,
33
uploadBytes,
44
uploadBytesResumable,
5-
getDownloadURL,
5+
getDownloadURL as firebaseGetDownloadURL,
66
deleteObject,
77
listAll,
88
getMetadata,
@@ -54,7 +54,7 @@ export class StorageService {
5454
},
5555
async () => {
5656
try {
57-
const downloadURL = await getDownloadURL(uploadTask.snapshot.ref);
57+
const downloadURL = await firebaseGetDownloadURL(uploadTask.snapshot.ref);
5858
onComplete(downloadURL);
5959
} catch (error) {
6060
onError(error as Error);
@@ -70,7 +70,7 @@ export class StorageService {
7070
static async getDownloadURL(path: string): Promise<string> {
7171
try {
7272
const storageRef = ref(storage, path);
73-
return await getDownloadURL(storageRef);
73+
return await firebaseGetDownloadURL(storageRef);
7474
} catch (error) {
7575
console.error('Error getting download URL:', error);
7676
throw error;

0 commit comments

Comments
 (0)