Phase 3.5: Finalized UI polish, added Console, and fixed stale stream status bug

This commit is contained in:
2026-03-18 11:37:16 +08:00
parent 38bc9526b2
commit d05ec7ccdf
6 changed files with 223 additions and 97 deletions

View File

@@ -41,5 +41,8 @@ func InitDB() {
log.Fatalf("Failed to migrate database: %v", err)
}
// Phase 3.5 Fix: Reset all rooms to inactive on startup using explicit map to ensure false is updated
DB.Model(&model.Room{}).Where("1 = 1").Updates(map[string]interface{}{"is_active": false})
log.Println("Database initialized successfully.")
}