fix: Invalidate user list cache on company creation and refresh page on popup creation
All checks were successful
Staging Build / build (push) Successful in 2m44s
All checks were successful
Staging Build / build (push) Successful in 2m44s
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
'use server';
|
||||
|
||||
import { createAdminClient } from '@/lib/supabase/admin';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
import { revalidatePath, unstable_noStore as noStore } from 'next/cache';
|
||||
import { sendMail } from '@/utils/mail';
|
||||
|
||||
export async function getUsers() {
|
||||
noStore();
|
||||
const admin = createAdminClient();
|
||||
const { data: { users }, error } = await admin.auth.admin.listUsers();
|
||||
if (error) throw error;
|
||||
|
||||
Reference in New Issue
Block a user