rm -rf amount in db
This commit is contained in:
1 parent
45378559ca
commit
87e4b33322
11 files changed
+48
-35
No files matched your search
@@ -171,7 +171,7 @@ func (h *handler) handleError(c *gin.Context, err error, action string) bool {
|
||||
switch {
|
||||
case errors.Is(err, pgx.ErrNoRows):
|
||||
c.JSON(http.StatusNotFound, appresult.ErrNotFound)
|
||||
case errors.Is(err, ErrAlreadyPaid), errors.Is(err, ErrAmountNotSet), errors.Is(err, ErrAmountExceedsMax), errors.Is(err, ErrPaymentWindowClosed):
|
||||
case errors.Is(err, ErrAlreadyPaid), errors.Is(err, ErrAmountExceedsMax), errors.Is(err, ErrPaymentWindowClosed):
|
||||
c.JSON(http.StatusBadRequest, appresult.ErrNotAcceptable)
|
||||
default:
|
||||
h.logger.Errorf("%s visa master payment order failed: %v", action, err)
|
||||
|
||||
Reference in new issue
Block a user