(id: string)
| 81 | } |
| 82 | |
| 83 | export async function getUserFollowers(id: string) { |
| 84 | "use cache"; |
| 85 | cacheLife("hours"); |
| 86 | cacheTag(`followers-${id}`); |
| 87 | |
| 88 | const supabase = await createClient(); |
| 89 | const { data, error } = await supabase |
| 90 | .from("followers") |
| 91 | .select("follower:follower_id(id, name, image, slug)") |
| 92 | .eq("following_id", id); |
| 93 | |
| 94 | return { data, error }; |
| 95 | } |
| 96 | |
| 97 | export async function getUserFollowing(id: string) { |
| 98 | "use cache"; |
no test coverage detected