fix: remove unnecessary database migration call in NewSecurityService

This commit is contained in:
GitHub Actions
2026-02-17 04:26:46 +00:00
parent 4bd0c4b403
commit 0bd1ae2fde

View File

@@ -34,10 +34,6 @@ type SecurityService struct {
// NewSecurityService returns a SecurityService using the provided DB
func NewSecurityService(db *gorm.DB) *SecurityService {
if db != nil {
_ = db.AutoMigrate(&models.SecurityAudit{})
}
s := &SecurityService{
db: db,
auditChan: make(chan *models.SecurityAudit, 100), // Buffered channel with capacity 100