From e655968fc33118f99e26289d0f728caceeb9f3dd Mon Sep 17 00:00:00 2001 From: qowevisa Date: Thu, 28 Nov 2024 15:06:07 +0200 Subject: [PATCH] Drop Debug() function to query on delete in payment.add rollback --- handlers/payment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/payment.go b/handlers/payment.go index 17e449d..e3a9f3b 100644 --- a/handlers/payment.go +++ b/handlers/payment.go @@ -80,7 +80,7 @@ func PaymentAdd(c *gin.Context) { if weNeedRollback { dbc := db.Connect() 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) continue }