fix account deletion

This commit is contained in:
Amruth Pillai
2025-01-09 15:46:50 +01:00
parent e29f973889
commit 8a401de5c9
3 changed files with 16 additions and 7 deletions

View File

@ -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",

View File

@ -1,5 +1,3 @@
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.
@ -7,7 +5,7 @@ version: "3.8"
services:
# Database (Postgres)
postgres:
image: postgres:16-alpine
image: postgres:latest
restart: unless-stopped
ports:
- ${POSTGRES_PORT:-5432}:5432
@ -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:

View File

@ -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.