diff --git a/server/handler/transactions.go b/server/handler/transactions.go index 92ce74ec5..0663b5561 100644 --- a/server/handler/transactions.go +++ b/server/handler/transactions.go @@ -532,11 +532,6 @@ func (h *Handler) DeleteTransaction(c echo.Context) error { Message: "transaction not found", }) } - return c.JSON(http.StatusInternalServerError, model.ErrorResponse{ - Status: "error", - Message: "failed to fetch transaction details", - Log: err.Error(), - }) } // Delete the transaction @@ -551,7 +546,7 @@ func (h *Handler) DeleteTransaction(c echo.Context) error { // Clear signatures for transactions with signed_at > txSignedAt if !signedAt.IsZero() { - _, err = h.DB.Exec(`UPDATE transactions SET signatures='[]'::jsonb WHERE multisig_address=$1 AND signed_at > $2`, address, signedAt) + _, err = h.DB.Exec(`UPDATE transactions SET signatures='[]'::jsonb WHERE multisig_address=$1 AND signed_at > $2 and status='PENDING'`, address, signedAt) if err != nil { return c.JSON(http.StatusInternalServerError, model.ErrorResponse{ Status: "error",