Reset amount to positive after saving transfer transaction
This commit is contained in:
parent
5ccec61465
commit
bbbeff92e8
@ -62,6 +62,8 @@ func (h *Handler) newTransaction(c *gin.Context) {
|
||||
c.AbortWithError(http.StatusInternalServerError, fmt.Errorf("create transfer transaction: %w", err))
|
||||
return
|
||||
}
|
||||
|
||||
newTransaction.Amount = amount
|
||||
} else {
|
||||
payeeID, err := GetPayeeID(c.Request.Context(), payload, h)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user