chore: build
ci-api / test (push) Successful in 23m21s
ci-web / test (push) Successful in 13m44s

This commit is contained in:
Xor290
2026-10-04 17:58:15 +02:00
parent 89bf45f738
commit e9659854db
4 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func Open(dsn string) (*gorm.DB, error) {
gdb, err := gorm.Open(postgres.Open(dsn), &gorm.Config{
Logger: logger.Default.LogMode(logger.Warn),
SkipDefaultTransaction: true,
PrepareStmt: true, // requêtes préparées : perf + anti-injection
PrepareStmt: true,
})
if err != nil {
return nil, fmt.Errorf("ouverture db: %w", err)