Drop Debug() function to query on delete in payment.add rollback

This commit is contained in:
qowevisa 2024-11-28 15:06:07 +02:00
parent dd5f67536e
commit e655968fc3

View File

@ -80,7 +80,7 @@ func PaymentAdd(c *gin.Context) {
if weNeedRollback { if weNeedRollback {
dbc := db.Connect() dbc := db.Connect()
for _, deleteIt := range deletableIfRollback { for _, deleteIt := range deletableIfRollback {
if err := dbc.Debug().Delete(deleteIt).Error; err != nil { if err := dbc.Delete(deleteIt).Error; err != nil {
log.Printf("ERROR: dbc.Delete: %v\n", err) log.Printf("ERROR: dbc.Delete: %v\n", err)
continue continue
} }