Deleted the billing-redirect-button, checkout-redirect-button, and embedded-stripe-checkout components. Additionally, removed the shadcn directory, which encompassed billing-related icons. This change streamlines the subscription settings interface and organizes the system's payment management. This update is a stepping stone towards improving the billing system's overall architecture.
26 lines
522 B
TypeScript
26 lines
522 B
TypeScript
import { USERS_TABLE } from '@/lib/db-tables';
|
|
|
|
import getSupabaseServerComponentClient from '@packages/supabase/server-component-client';
|
|
|
|
export async function getUsers(ids: string[]) {
|
|
const client = getSupabaseServerComponentClient({ admin: true });
|
|
|
|
const { data: users, error } = await client
|
|
.from(USERS_TABLE)
|
|
.select(
|
|
`
|
|
id,
|
|
photoURL: photo_url,
|
|
displayName: display_name,
|
|
onboarded
|
|
`,
|
|
)
|
|
.in('id', ids);
|
|
|
|
if (error) {
|
|
throw error;
|
|
}
|
|
|
|
return users;
|
|
}
|