diff --git a/cmd/checkout/pool-server.go b/cmd/checkout/pool-server.go index 56accfa..ef42e79 100644 --- a/cmd/checkout/pool-server.go +++ b/cmd/checkout/pool-server.go @@ -458,7 +458,7 @@ func (s *CheckoutPoolServer) StartPaymentHandler(w http.ResponseWriter, r *http. return err } // Apply PaymentStarted mutation - _, err = s.ApplyLocal(r.Context(), checkoutId, &messages.PaymentStarted{ + result, err := s.ApplyLocal(r.Context(), checkoutId, &messages.PaymentStarted{ PaymentId: session.Id, Amount: session.Amount.Value, Currency: session.Amount.Currency, @@ -475,7 +475,7 @@ func (s *CheckoutPoolServer) StartPaymentHandler(w http.ResponseWriter, r *http. return err } - return s.WriteResult(w, session) + return s.WriteResult(w, result) case "klarna": order, err := s.CreateOrUpdateCheckout(r, grain, nil) @@ -488,7 +488,7 @@ func (s *CheckoutPoolServer) StartPaymentHandler(w http.ResponseWriter, r *http. logger.Error("unable to marshal order", "error", err) return err } - _, err = s.ApplyLocal(r.Context(), checkoutId, &messages.PaymentStarted{ + result, err := s.ApplyLocal(r.Context(), checkoutId, &messages.PaymentStarted{ PaymentId: order.ID, Amount: int64(order.OrderAmount), Currency: order.PurchaseCurrency, @@ -505,7 +505,7 @@ func (s *CheckoutPoolServer) StartPaymentHandler(w http.ResponseWriter, r *http. return err } - return s.WriteResult(w, order) + return s.WriteResult(w, result) default: http.Error(w, "unsupported payment provider", http.StatusBadRequest) diff --git a/deployment/deployment.yaml b/deployment/deployment.yaml index cc21e15..49aba60 100644 --- a/deployment/deployment.yaml +++ b/deployment/deployment.yaml @@ -282,14 +282,14 @@ spec: path: /livez port: web failureThreshold: 1 - periodSeconds: 30 + periodSeconds: 15 readinessProbe: httpGet: path: /readyz port: web failureThreshold: 2 initialDelaySeconds: 2 - periodSeconds: 30 + periodSeconds: 15 volumeMounts: - mountPath: "/data" name: data @@ -416,14 +416,14 @@ spec: path: /livez port: web failureThreshold: 1 - periodSeconds: 30 + periodSeconds: 15 readinessProbe: httpGet: path: /readyz port: web failureThreshold: 2 - initialDelaySeconds: 2 - periodSeconds: 50 + initialDelaySeconds: 1 + periodSeconds: 15 volumeMounts: - mountPath: "/data" name: data