From 7b1c7482cca1df545f999e79eada61e7eb648ee5 Mon Sep 17 00:00:00 2001 From: "Schaper, Sven (EXTERN: NTT DATA)" Date: Fri, 10 Feb 2023 21:15:32 +0100 Subject: [PATCH] Update stripe.go --- stripe.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stripe.go b/stripe.go index e6eb736..868e0fc 100644 --- a/stripe.go +++ b/stripe.go @@ -196,9 +196,11 @@ func (web *WebAdmin) UpdateCustomer(sub stripe.Subscription) { c, err := customer.Get(custId, ¶ms) if err != nil { fmt.Println("Check Costumer failed " + err.Error()) + return } if c == nil { fmt.Println("Customer not found ") + return } profil := web.GetOne(web.Collection, bson.M{web.MailTitle: c.Email}).Customer() profil.StripeAccount = custId