Skip to content

Commit

Permalink
Merge pull request #116 from feliciagan/qnhist
Browse files Browse the repository at this point in the history
remove commented code
  • Loading branch information
guanquann authored Nov 10, 2024
2 parents 7a55edd + 75529bb commit 394921a
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions backend/user-service/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,3 @@ export const createFirebaseUserWithEmailAndPassword = async (
): Promise<UserRecord> => {
return auth.createUser({ uid, email, password });
};

/*export const deleteFileFromFirebase = async (
fileUrl: string
): Promise<string> => {
return new Promise((resolve, reject) => {
const fileName = fileUrl.split('/o/')[1].split('?')[0].replace(/%2F/g, '/');
const ref = bucket.file(fileName);
async () => {
try {
await ref.delete();
resolve("File deleted");
} catch (error) {
reject(error);
}
}
})
};*/

0 comments on commit 394921a

Please sign in to comment.