Drop Debug() function to query on delete in payment.add rollback
This commit is contained in:
parent
dd5f67536e
commit
e655968fc3
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user