-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File not showing proper output in Dashboard #78
Comments
I had the same problem @jwalishjoseph. The problem is that the TRPC is not working properly either update the code if you're using the old version or don't use TRPC |
how to fix the code |
I don't really use TRPC so I can't help you with that. |
What alternative should I consider instead of using TRPC? |
I would recommend not using TRPC at all or just use tanstack query itself. |
I'm also trying to recreate it myself, so I can show you my own approach. |
Try this import { PDFLoader } from 'langchain/document_loaders/fs/pdf' const f = createUploadthing() const middleware = async () => { if (!user || !user.id) throw new Error('Unauthorized') const subscriptionPlan = await getUserSubscriptionPlan() return { subscriptionPlan, userId: user.id } const onUploadComplete = async ({ if (isFileExist) return const createdFile = await db.file.create({ try {
} catch (err) { export const ourFileRouter = { export type OurFileRouter = typeof ourFileRouter |
The text was updated successfully, but these errors were encountered: