Fix jwt-token

This commit is contained in:
2025-09-10 06:24:57 +02:00
parent 7a1244f16a
commit 9ad21bc1f5
3 changed files with 153 additions and 20 deletions

View File

@@ -111,8 +111,8 @@ async function startServer() {
// Always sync database in containerized environments or development
// Check if tables exist before syncing
try {
// Enable alter to add new columns like raw_payload
await sequelize.sync({ force: false, alter: true });
// Use alter: false to prevent destructive changes in production
await sequelize.sync({ force: false, alter: false });
console.log('Database synchronized.');
// Seed database with initial data