fix: stripe action not running due to invalid env check in github action

This commit is contained in:
ShubhamPalriwala
2023-12-04 20:44:56 +05:30
parent 4b0eef9c2e
commit 562f326638

View File

@@ -1,7 +1,7 @@
import { responses } from "@/app/lib/api/response";
import { reportUsageToStripe } from "@formbricks/ee/billing/lib/reportUsage";
import { ProductFeatureKeys } from "@formbricks/ee/billing/lib/constants";
import { CRON_SECRET, IS_FORMBRICKS_CLOUD } from "@formbricks/lib/constants";
import { CRON_SECRET } from "@formbricks/lib/constants";
import {
getMonthlyActiveTeamPeopleCount,
getMonthlyTeamResponseCount,
@@ -17,10 +17,6 @@ async function reportTeamUsage(team: TTeam) {
return;
}
if (!IS_FORMBRICKS_CLOUD) {
return;
}
let calculateResponses =
team.billing.features.inAppSurvey.status !== "inactive" && !team.billing.features.inAppSurvey.unlimited;
let calculatePeople =