()
| 232 | } |
| 233 | |
| 234 | export 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 | |
| 249 | export async function getNewUsers() { |
| 250 | "use cache"; |
no test coverage detected