Skip to content

Commit

Permalink
add condition to deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
charymalloju committed Nov 12, 2024
1 parent ae90850 commit 4e98fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handler/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,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",
Expand Down

0 comments on commit 4e98fc0

Please sign in to comment.