From 0c38d99bdef8b283eee5ed37765cd8233797fa2c Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 28 May 2024 17:23:54 +0200 Subject: [PATCH] fix(backend): use correct function !nuf --- backend/src/api/controllers/user.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/api/controllers/user.ts b/backend/src/api/controllers/user.ts index 44c54e83d..7677cd493 100644 --- a/backend/src/api/controllers/user.ts +++ b/backend/src/api/controllers/user.ts @@ -403,7 +403,7 @@ export async function getUser( //since there is no data in the database anyway, we can just delete the user from the auth system //and ask them to sign up again try { - await firebaseDeleteUser(uid); + await AuthUtil.deleteUser(uid); throw new MonkeyError( 404, "User not found in the database, but found in the auth system. We have deleted the ghost user from the auth system. Please sign up again.", @@ -1057,7 +1057,7 @@ export async function getTestActivity( async function firebaseDeleteUserIgnoreError(uid: string): Promise { try { - await firebaseDeleteUser(uid); + await AuthUtil.deleteUser(uid); } catch (e) { //ignore }