Update save-billing-info-and-subscribe.js (#7897)

This commit is contained in:
Eric 2022-09-22 11:58:31 -05:00 committed by GitHub
parent e665e85a90
commit 15ac7ac189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
});