Reset amount to positive after saving transfer transaction
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jan Bader 2022-02-23 22:55:15 +00:00
parent 5ccec61465
commit bbbeff92e8

View File

@ -62,6 +62,8 @@ func (h *Handler) newTransaction(c *gin.Context) {
c.AbortWithError(http.StatusInternalServerError, fmt.Errorf("create transfer transaction: %w", err)) c.AbortWithError(http.StatusInternalServerError, fmt.Errorf("create transfer transaction: %w", err))
return return
} }
newTransaction.Amount = amount
} else { } else {
payeeID, err := GetPayeeID(c.Request.Context(), payload, h) payeeID, err := GetPayeeID(c.Request.Context(), payload, h)
if err != nil { if err != nil {