Compare commits

...

1 Commits

Author SHA1 Message Date
ShubhamPalriwala
562f326638 fix: stripe action not running due to invalid env check in github action 2023-12-04 20:44:56 +05:30

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 =