Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into handle-stripe-invoi…
Browse files Browse the repository at this point in the history
…ce-pay-failed-01
  • Loading branch information
pavelbrm committed Nov 8, 2024
2 parents bbc4b96 + eba1bb2 commit ac0cb3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions services/skus/controllers.go
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ func handleWebhookPlayStoreH(w http.ResponseWriter, r *http.Request, svc *Servic

return handlers.RenderContent(ctx, struct{}{}, w, http.StatusOK)

case errors.Is(err, model.ErrNoRowsChangedOrder), errors.Is(err, model.ErrNoRowsChangedOrderPayHistory):
case errors.Is(err, model.ErrNoRowsChangedOrder):
l.Warn().Err(err).Msg("failed to process play store notification")

// No rows have changed whilst processing.
Expand Down Expand Up @@ -1180,7 +1180,7 @@ func handleWebhookAppStoreH(w http.ResponseWriter, r *http.Request, svc *Service

return handlers.RenderContent(ctx, struct{}{}, w, http.StatusOK)

case errors.Is(err, model.ErrNoRowsChangedOrder), errors.Is(err, model.ErrNoRowsChangedOrderPayHistory):
case errors.Is(err, model.ErrNoRowsChangedOrder):
l.Warn().Err(err).Msg("failed to process app store notification")

// No rows have changed whilst processing.
Expand Down Expand Up @@ -1313,7 +1313,7 @@ func handleStripeWebhook(svc *Service) handlers.AppHandler {

return handlers.RenderContent(ctx, struct{}{}, w, http.StatusOK)

case errors.Is(err, model.ErrNoRowsChangedOrder), errors.Is(err, model.ErrNoRowsChangedOrderPayHistory):
case errors.Is(err, model.ErrNoRowsChangedOrder):
l.Warn().Err(err).Msg("failed to process stripe notification")

// No rows have changed whilst processing.
Expand Down
1 change: 0 additions & 1 deletion services/skus/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const (
ErrOrderNotPaid Error = "order not paid"
ErrIssuerNotFound Error = "model: issuer not found"
ErrNoRowsChangedOrder Error = "model: no rows changed in orders"
ErrNoRowsChangedOrderPayHistory Error = "model: no rows changed in order_payment_history"
ErrExpiredStripeCheckoutSessionIDNotFound Error = "model: expired stripeCheckoutSessionId not found"
ErrInvalidOrderNoItems Error = "model: invalid order: no items"
ErrNoStripeCheckoutSessID Error = "model: order: no stripe checkout session id"
Expand Down

0 comments on commit ac0cb3b

Please sign in to comment.