Mauricio Araujo 2 лет назад
Родитель
Сommit
5b0ca79a3a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      api/server/handlers/project/create.go

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

@@ -103,6 +103,7 @@ func (p *ProjectCreateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
 		if err != nil {
 			err = telemetry.Error(ctx, span, err, "error creating Metronome customer")
 			p.HandleAPIError(w, r, apierrors.NewErrInternal(err))
+			return
 		}
 		proj.UsageID = customerID
 		proj.UsagePlanID = customerPlanID