Skip to content

Commit

Permalink
Make sure we know if MonthlyReportFreeUser is off
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinnl committed Oct 22, 2024
1 parent 8f8f7b6 commit e12fe45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/db/tables/subscribers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { SerializedSubscriber } from "../../next-auth.js";
import { getFeatureFlagData } from "./featureFlags";
import { getEnvVarsOrThrow } from "../../envVars";
import { parseIso8601Datetime } from "../../utils/parse";
import { logger } from "../../app/functions/server/logging";

const knex = createDbConnection();
const { DELETE_UNVERIFIED_SUBSCRIBERS_TIMER } = getEnvVarsOrThrow([
Expand Down Expand Up @@ -429,6 +430,9 @@ async function getFreeSubscribersWaitingForMonthlyEmail(): Promise<
!flag?.is_enabled &&
!(Array.isArray(flag?.allow_list) && flag.allow_list.length > 0)
) {
logger.info("monthly_free_report_disabled", {
flag: flag,
});
return [];
}

Expand Down

0 comments on commit e12fe45

Please sign in to comment.