diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml
index 2663ca678..82280f8e5 100644
--- a/.github/workflows/alpha.yml
+++ b/.github/workflows/alpha.yml
@@ -2,7 +2,7 @@ name: 'Alpha Build'
on:
push:
- branches: [v4200/build-system]
+ branches: [v5000/separate-app]
jobs:
frontend:
diff --git a/backend/src/db/actions/delete.ts b/backend/src/db/actions/delete.ts
index 55c0bbe89..b2a8eb4a8 100644
--- a/backend/src/db/actions/delete.ts
+++ b/backend/src/db/actions/delete.ts
@@ -21,13 +21,28 @@ export async function deleteAccount(
}
return await transaction(async (manager) => {
- await delMessages(manager, options.deleteSessions, user, anonymousAccount);
- await delVisits(manager, options.deleteSessions, user, anonymousAccount);
- await delVotes(manager, options.deleteVotes, user, anonymousAccount);
- await delPosts(manager, options.deletePosts, user, anonymousAccount);
- await delSessions(manager, options.deleteSessions, user, anonymousAccount);
- await delUserAccount(manager, user);
- return true;
+ try {
+ await delMessages(
+ manager,
+ options.deleteSessions,
+ user,
+ anonymousAccount
+ );
+ await delVisits(manager, options.deleteSessions, user, anonymousAccount);
+ await delVotes(manager, options.deleteVotes, user, anonymousAccount);
+ await delPosts(manager, options.deletePosts, user, anonymousAccount);
+ await delSessions(
+ manager,
+ options.deleteSessions,
+ user,
+ anonymousAccount
+ );
+ await delUserAccount(manager, user);
+ return true;
+ } catch (ex) {
+ console.log('Error while trying to delete account', ex);
+ throw ex;
+ }
});
}
diff --git a/frontend/index.html b/frontend/index.html
index 566529bb3..c6daf9fe0 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -58,16 +58,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+