@@ -56,6 +56,10 @@ func main() {
}
defer db.Close()
db.DB().SetMaxOpenConns(25)
db.DB().SetMaxIdleConns(25)
db.DB().SetConnMaxLifetime(time.Hour)
// Migrate the schema
db.AutoMigrate(
&models.Badge{},
The note is not visible to the blocked user.