Skip to content

Commit

Permalink
Remove old marketing page (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinejaussoin authored Feb 24, 2023
1 parent 4c69831 commit 3c7fdb5
Show file tree
Hide file tree
Showing 38 changed files with 475 additions and 1,179 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Alpha Build'

on:
push:
branches: [v4200/build-system]
branches: [v5000/separate-app]

jobs:
frontend:
Expand Down
29 changes: 22 additions & 7 deletions backend/src/db/actions/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
}

Expand Down
Loading

0 comments on commit 3c7fdb5

Please sign in to comment.