Skip to content

Commit 394921a

Browse files
authored
Merge pull request #116 from feliciagan/qnhist
remove commented code
2 parents 7a55edd + 75529bb commit 394921a

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

backend/user-service/src/utils/utils.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,3 @@ export const createFirebaseUserWithEmailAndPassword = async (
4040
): Promise<UserRecord> => {
4141
return auth.createUser({ uid, email, password });
4242
};
43-
44-
/*export const deleteFileFromFirebase = async (
45-
fileUrl: string
46-
): Promise<string> => {
47-
return new Promise((resolve, reject) => {
48-
const fileName = fileUrl.split('/o/')[1].split('?')[0].replace(/%2F/g, '/');
49-
const ref = bucket.file(fileName);
50-
51-
async () => {
52-
try {
53-
await ref.delete();
54-
resolve("File deleted");
55-
} catch (error) {
56-
reject(error);
57-
}
58-
}
59-
})
60-
};*/

0 commit comments

Comments
 (0)