fix: add bullmq, fix login error logging, regenerate zod schemas

This commit is contained in:
Gitead
2026-04-16 15:50:34 -04:00
parent 7fa7f405e2
commit f6adb75f4f
121 changed files with 1539 additions and 1097 deletions

View File

@@ -1,9 +1,7 @@
NODE_ENV="development"
HOST=0.0.0.0
PORT=5000
# FRONTEND_URLS=http://localhost:3000,http://192.168.1.8:3000
FRONTEND_URLS=http://localhost:3000
# FRONTEND_URLS=http://192.168.1.37:3000
SELENIUM_AGENT_BASE_URL=http://localhost:5002
JWT_SECRET = 'dentalsecret'
DB_HOST=localhost

View File

@@ -16,6 +16,7 @@
"archiver": "^7.0.1",
"axios": "^1.9.0",
"bcrypt": "^5.1.1",
"bullmq": "^5.74.1",
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.21.2",

View File

@@ -85,6 +85,7 @@ router.post(
const { password, ...safeUser } = user;
return res.status(200).json({ user: safeUser, token });
} catch (error) {
console.error("Login error:", error);
return res.status(500).json({ error: "Internal server error" });
}
}

View File

@@ -1,5 +1,4 @@
NODE_ENV=development
HOST=0.0.0.0
PORT=3000
# VITE_API_BASE_URL_BACKEND=http://192.168.1.37:5000
VITE_API_BASE_URL_BACKEND=http://localhost:5000