Skip to content

Commit

Permalink
fix account deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
AmruthPillai committed Jan 9, 2025
1 parent e29f973 commit 8a401de
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const DangerZoneSettings = () => {

// On the second click, delete the account
if (count === 1) {
await Promise.all([deleteUser, logout]);
await Promise.all([deleteUser(), logout()]);

toast({
variant: "success",
Expand Down
19 changes: 15 additions & 4 deletions tools/compose/development.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
version: "3.8"

# In this Docker Compose example, we only fire up the services required for local development.
# This is not advised for production use as it exposes ports to the database insecurely.
# If you're looking for a production-ready Docker Compose file, check out the `traefik.yml` file.

services:
# Database (Postgres)
postgres:
image: postgres:16-alpine
image: postgres:latest
restart: unless-stopped
ports:
- ${POSTGRES_PORT:-5432}:5432
Expand All @@ -23,9 +21,22 @@ services:
timeout: 5s
retries: 5

# Adminer (for database management)
adminer:
image: shyim/adminerevo:latest
restart: unless-stopped
ports:
- 5555:8080
environment:
ADMINER_DEFAULT_DRIVER: pgsql
ADMINER_DEFAULT_SERVER: postgres
ADMINER_DEFAULT_USER: ${POSTGRES_USER:-postgres}
ADMINER_DEFAULT_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ADMINER_DEFAULT_DB: ${POSTGRES_DB:-postgres}

# Storage (for image uploads)
minio:
image: minio/minio
image: minio/minio:latest
restart: unless-stopped
command: server /data
ports:
Expand Down
2 changes: 0 additions & 2 deletions tools/compose/simple.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

# In this Docker Compose example, it assumes that you maintain a reverse proxy externally (or chose not to).
# The only two exposed ports here are from minio (:9000) and the app itself (:3000).
# If these ports are changed, ensure that the env vars passed to the app are also changed accordingly.
Expand Down

0 comments on commit 8a401de

Please sign in to comment.