mirror of
https://github.com/fleetdm/fleet
synced 2026-05-05 14:28:46 +00:00
Changes: - Updated the price of Fleet Premium on fleetdm.com/customers/new-license to match the price of Fleet premium on fleetdm.com/pricing ($7.00/host/month) - Updated the price of Fleet premium in `create-quote.js` As this is merged, we will need to update the value of `sails.config.custom.stripeSubscriptionPriceId` to be the id for the new price in Stripe.
43 lines
565 B
JavaScript
Vendored
43 lines
565 B
JavaScript
Vendored
module.exports = {
|
|
|
|
|
|
friendlyName: 'Create quote',
|
|
|
|
|
|
description: '',
|
|
|
|
|
|
inputs: {
|
|
|
|
numberOfHosts: {
|
|
type: 'number',
|
|
required: true,
|
|
},
|
|
|
|
},
|
|
|
|
|
|
exits: {
|
|
|
|
},
|
|
|
|
|
|
fn: async function ({ numberOfHosts }) {
|
|
|
|
// Determine the price, 7 dollars * host * month (Billed anually)
|
|
let price = 7.00 * numberOfHosts * 12;
|
|
|
|
let quote = await Quote.create({
|
|
numberOfHosts: numberOfHosts,
|
|
quotedPrice: price,
|
|
organization: this.req.me.organization,
|
|
user: this.req.me.id,
|
|
}).fetch();
|
|
|
|
|
|
return quote;
|
|
|
|
}
|
|
|
|
|
|
};
|