(id: string)
| 95 | } |
| 96 | |
| 97 | export async function getUserFollowing(id: string) { |
| 98 | "use cache"; |
| 99 | cacheLife("hours"); |
| 100 | cacheTag(`following-${id}`); |
| 101 | |
| 102 | const supabase = await createClient(); |
| 103 | const { data, error } = await supabase |
| 104 | .from("followers") |
| 105 | .select("following:following_id(id, name, image, slug)") |
| 106 | .eq("follower_id", id); |
| 107 | |
| 108 | return { data, error }; |
| 109 | } |
| 110 | |
| 111 | async function fetchCompanyProfile(slug: string, userId?: string) { |
| 112 | const supabase = await createClient(); |
no test coverage detected