modified: main.go

fix loosed breackeds
This commit is contained in:
2025-09-25 15:29:11 +05:00
parent 93814296fa
commit 6b512927a0
+1 -1
View File
@@ -22,7 +22,7 @@ type User struct {
func handler(w http.ResponseWriter, r *http.Request) {
// Get DB connection from context
db, ok := r.Context().Value("db").(*gorm.DB
db, ok := r.Context().Value("db").(*gorm.DB)
if !ok {
http.Error(w, "Database connection not found", http.StatusInternalServerError)
return