Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

fix account deletion

Amruth Pillai8a401de5c99b
diff --git a/apps/client/src/pages/dashboard/settings/_sections/danger.tsx b/apps/client/src/pages/dashboard/settings/_sections/danger.tsx
index 283190fc7..6db99f9ef 100644
--- a/apps/client/src/pages/dashboard/settings/_sections/danger.tsx
+++ b/apps/client/src/pages/dashboard/settings/_sections/danger.tsx
@@ -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",
diff --git a/tools/compose/development.yml b/tools/compose/development.yml
index ad0f39497..d8780777b 100644
--- a/tools/compose/development.yml
+++ b/tools/compose/development.yml
@@ -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:
diff --git a/tools/compose/simple.yml b/tools/compose/simple.yml
index d30f3bc77..83e6d54e8 100644
--- a/tools/compose/simple.yml
+++ b/tools/compose/simple.yml
@@ -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.