From 15ac7ac18977715c1a86b2849abd45f3e1d5b16b Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 22 Sep 2022 11:58:31 -0500 Subject: [PATCH] Update save-billing-info-and-subscribe.js (#7897) --- .../controllers/customers/save-billing-info-and-subscribe.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/api/controllers/customers/save-billing-info-and-subscribe.js b/website/api/controllers/customers/save-billing-info-and-subscribe.js index bc7c758c37..cdc55a3fda 100644 --- a/website/api/controllers/customers/save-billing-info-and-subscribe.js +++ b/website/api/controllers/customers/save-billing-info-and-subscribe.js @@ -98,7 +98,7 @@ module.exports = { // Generate the license key for this subscription let licenseKey = await sails.helpers.createLicenseKey.with({ numberOfHosts: quoteRecord.numberOfHosts, - organization: this.req.me.organization, + organization: this.req.me.organization ? this.req.me.organization : this.req.me.emailAddress, validTo: subscription.current_period_end });