Files
myeasycms-v2/apps/web/app/admin/users/queries.ts
giancarlo cb8b23e8c0 Remove billing and checkout redirect buttons and related services
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.
2024-03-25 11:39:41 +08:00

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;
}