Mauricio Araujo 2 年之前
父节点
当前提交
d36bba427c
共有 3 个文件被更改,包括 1 次插入3 次删除
  1. 0 1
      api/server/handlers/billing/customer.go
  2. 0 1
      api/server/handlers/project/create.go
  3. 1 1
      zarf/helm/.serverenv

+ 0 - 1
api/server/handlers/billing/customer.go

@@ -59,7 +59,6 @@ func (c *CreateBillingCustomerHandler) ServeHTTP(w http.ResponseWriter, r *http.
 	if proj.UsageID == uuid.Nil {
 		// Create Metronome customer and add to starter plan
 		if c.Config().ServerConf.MetronomeAPIKey != "" && c.Config().ServerConf.PorterCloudPlanID != "" && proj.GetFeatureFlag(models.MetronomeEnabled, c.Config().LaunchDarklyClient) {
-
 			// Create Metronome Customer
 			if c.Config().ServerConf.MetronomeAPIKey != "" {
 				usageID, err := c.Config().BillingManager.MetronomeClient.CreateCustomer(user.CompanyName, proj.Name, proj.ID, proj.BillingID)

+ 0 - 1
api/server/handlers/project/create.go

@@ -102,7 +102,6 @@ func (p *ProjectCreateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 
 	// Create Metronome customer and add to starter plan
 	if p.Config().ServerConf.MetronomeAPIKey != "" && p.Config().ServerConf.PorterCloudPlanID != "" && proj.GetFeatureFlag(models.MetronomeEnabled, p.Config().LaunchDarklyClient) {
-
 		// Create Metronome Customer
 		if p.Config().ServerConf.MetronomeAPIKey != "" {
 			usageID, err := p.Config().BillingManager.MetronomeClient.CreateCustomer(user.CompanyName, proj.Name, proj.ID, proj.BillingID)

+ 1 - 1
zarf/helm/.serverenv

@@ -77,4 +77,4 @@ STRIPE_PUBLISHABLE_KEY=
 METRONOME_API_KEY=
 
 # PORTER_CLOUD_PLAN_ID is the id of the starter plan in Metronome. Only used if METRONOME_API_KEY is set
-PORTER_CLOUD_PLAN_ID=
+PORTER_CLOUD_PLAN_ID=