From 4a2ea66e5df1f3c67f49e76dee02438d1dede261 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sun, 2 Aug 2026 12:01:02 +0200 Subject: [PATCH] Update stats page: adjust member count source to use cached stats data following revoked profiles table access --- web/pages/stats.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/pages/stats.tsx b/web/pages/stats.tsx index f3aa65fe..692fc695 100644 --- a/web/pages/stats.tsx +++ b/web/pages/stats.tsx @@ -402,8 +402,10 @@ export default function Stats() { useEffect(() => { async function load() { + // No 'profiles' here: the anon/authenticated SELECT grant on that table was revoked (bulk-read + // cap, migration 20260730_cap_profiles_users_reads.sql), so the PostgREST count threw and the + // member count silently dropped out of the hero band. It comes from the cached /stats aggregate. const tables = [ - 'profiles', 'private_user_message_channels', 'compatibility_prompts', 'compatibility_answers', @@ -478,7 +480,7 @@ export default function Stats() { <> {/* ── Hero band ── */}