MCPcopy Create free account
hub / github.com/cursor/community-plugins / getTotalUsers

Function getTotalUsers

apps/cursor/src/data/queries.ts:234–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

232}
233
234export async function getTotalUsers() {
235 "use cache";
236 // Mirrors the old `revalidate = 300` behavior on the members page.
237 cacheLife({ stale: 300, revalidate: 300, expire: 86400 });
238 cacheTag("users");
239
240 const supabase = await createClient();
241 const { data, error } = await supabase
242 .from("users")
243 .select("count", { count: "exact" })
244 .single();
245
246 return { data, error };
247}
248
249export async function getNewUsers() {
250 "use cache";

Callers 2

MembersPageContentFunction · 0.90
PageFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected