diff --git a/server/channels/api4/hosted_customer.go b/server/channels/api4/hosted_customer.go index b82fb8719f..31cc047085 100644 --- a/server/channels/api4/hosted_customer.go +++ b/server/channels/api4/hosted_customer.go @@ -177,8 +177,8 @@ func selfHostedConfirm(c *Context, w http.ResponseWriter, r *http.Request) { } var confirmResponse *model.SelfHostedSignupConfirmResponse + var confirm model.SelfHostedConfirmPaymentMethodRequest if expand { - var confirm model.SelfHostedExpansionConfirmPaymentMethodRequest err = json.Unmarshal(bodyBytes, &confirm) if err != nil { c.Err = model.NewAppError(where, "api.cloud.request_error", nil, "", http.StatusBadRequest).Wrap(err) @@ -187,7 +187,6 @@ func selfHostedConfirm(c *Context, w http.ResponseWriter, r *http.Request) { confirmResponse, err = c.App.Cloud().ConfirmSelfHostedExpansion(confirm, user.Email) } else { - var confirm model.SelfHostedConfirmPaymentMethodRequest err = json.Unmarshal(bodyBytes, &confirm) if err != nil { c.Err = model.NewAppError(where, "api.cloud.request_error", nil, "", http.StatusBadRequest).Wrap(err) diff --git a/server/channels/einterfaces/cloud.go b/server/channels/einterfaces/cloud.go index 8d92474cc8..d8c261aa6d 100644 --- a/server/channels/einterfaces/cloud.go +++ b/server/channels/einterfaces/cloud.go @@ -37,7 +37,7 @@ type CloudInterface interface { BootstrapSelfHostedSignup(req model.BootstrapSelfHostedSignupRequest) (*model.BootstrapSelfHostedSignupResponse, error) CreateCustomerSelfHostedSignup(req model.SelfHostedCustomerForm, requesterEmail string) (*model.SelfHostedSignupCustomerResponse, error) ConfirmSelfHostedSignup(req model.SelfHostedConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) - ConfirmSelfHostedExpansion(req model.SelfHostedExpansionConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) + ConfirmSelfHostedExpansion(req model.SelfHostedConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) ConfirmSelfHostedSignupLicenseApplication() error GetSelfHostedInvoices() ([]*model.Invoice, error) GetSelfHostedInvoicePDF(invoiceID string) ([]byte, string, error)