()
| 13 | import { revalidatePath } from 'next/cache'; |
| 14 | import { Cart } from '@prisma/client'; |
| 15 | const getAuthUser = async () => { |
| 16 | const user = await currentUser(); |
| 17 | if (!user) redirect('/'); |
| 18 | return user; |
| 19 | }; |
| 20 | |
| 21 | const getAdminUser = async () => { |
| 22 | const user = await getAuthUser(); |
no outgoing calls
no test coverage detected