Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix
Richie McIlroyabb551ede7c1
diff --git a/apps/web/app/(org)/dashboard/admin/AdminDashboardClient.tsx b/apps/web/app/(org)/dashboard/admin/AdminDashboardClient.tsxindex 6e5303dce..dea4d4abf 100644--- a/apps/web/app/(org)/dashboard/admin/AdminDashboardClient.tsx+++ b/apps/web/app/(org)/dashboard/admin/AdminDashboardClient.tsx@@ -67,7 +67,7 @@ export default function AdminDashboardClient() {<div className="bg-white rounded-lg shadow p-6"><h2 className="text-sm font-medium text-gray-600 mb-2">- Total Paid Users+ New Paid Users</h2>{loading ? (<div className="h-9 bg-gray-200 rounded animate-pulse"></div>diff --git a/apps/web/app/(org)/dashboard/admin/actions.ts b/apps/web/app/(org)/dashboard/admin/actions.tsindex c9890ec7e..6eef6dd0c 100644--- a/apps/web/app/(org)/dashboard/admin/actions.ts+++ b/apps/web/app/(org)/dashboard/admin/actions.ts@@ -9,7 +9,7 @@ import { DateRange, getDateRangeFilter } from "./dateRangeUtils";export async function lookupUserById(data: FormData) {const currentUser = await getCurrentUser();- if (!currentUser?.email.endsWith("@cap.so")) return;+ if (currentUser?.email !== "[email protected]") return;const [user] = await db().select()@@ -21,7 +21,7 @@ export async function lookupUserById(data: FormData) {export async function getUsersCreatedToday() {const currentUser = await getCurrentUser();- if (!currentUser?.email.endsWith("@cap.so")) return null;+ if (currentUser?.email !== "[email protected]") return null;const startOfToday = new Date();startOfToday.setHours(0, 0, 0, 0);@@ -36,7 +36,7 @@ export async function getUsersCreatedToday() {export async function getUsersCreatedInRange(dateRange: DateRange) {const currentUser = await getCurrentUser();- if (!currentUser?.email.endsWith("@cap.so")) return null;+ if (currentUser?.email !== "[email protected]") return null;const { start, end } = getDateRangeFilter(dateRange);@@ -55,7 +55,7 @@ export async function getUsersCreatedInRange(dateRange: DateRange) {export async function getPaidUsersStats() {const currentUser = await getCurrentUser();- if (!currentUser?.email.endsWith("@cap.so")) return null;+ if (currentUser?.email !== "[email protected]") return null;// Get all users with active subscriptions (including third-party)const paidUsers = await db()@@ -169,11 +169,11 @@ export async function getPaidUsersStats() {export async function getPaidUsersStatsInRange(dateRange: DateRange) {const currentUser = await getCurrentUser();- if (!currentUser?.email.endsWith("@cap.so")) return null;+ if (currentUser?.email !== "[email protected]") return null;const { start, end } = getDateRangeFilter(dateRange);- // Get all users with active subscriptions created in the date range+ // Get paid users who joined within the date rangeconst paidUsers = await db().select({id: users.id,@@ -197,10 +197,8 @@ export async function getPaidUsersStatsInRange(dateRange: DateRange) {),isNotNull(users.thirdPartyStripeSubscriptionId)),- dateRange !== "allTime" ? and(- gte(users.created_at, start),- lte(users.created_at, end)- ) : sql`1=1`+ gte(users.created_at, start),+ lte(users.created_at, end)));