fix bug: no model needed here

This commit is contained in:
kiwiidb
2022-10-28 10:51:27 +02:00
parent f7dd956ac4
commit 2229ac56d6
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ func (controller *PayInvoiceController) PayInvoice(c echo.Context) error {
currentBalance, err := controller.svc.CurrentUserBalance(c.Request().Context(), userID)
if err != nil {
controller.svc.DB.NewDelete().Model(&invoice).Where("id = ?", invoice.ID).Exec(c.Request().Context())
controller.svc.DB.NewDelete().Where("id = ?", invoice.ID).Exec(c.Request().Context())
return err
}