rm -rf amount in db
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-19 12:16:24 +05:00
1 parent 45378559ca
commit 87e4b33322
11 files changed
+48 -35

No files matched your search

+1 -1
View File
@@ -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)