Basic Stripe integration. new pages for stripe handshake and new Account page. use query instead of useQuery for trpc fetches from store

This commit is contained in:
Michael Dausmann
2023-03-18 20:37:51 +11:00
parent 2ef98d0d98
commit 7311c13db2
21 changed files with 503 additions and 34 deletions

View File

@@ -33,9 +33,10 @@ export async function createContext(event: H3Event){
}
if(!supabase || !user || !prisma || !dbUser) {
throw new TRPCError({
code: 'INTERNAL_SERVER_ERROR',
message: 'Unable to fetch user data, please try again later.',
message: `Unable to fetch user data, please try again later. Missing ->[supabase:${(!supabase)},user:${(!user)},prisma:${(!prisma)},dbUser:${(!dbUser)}, ]`,
});
}