We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2db35 commit 13d8b92Copy full SHA for 13d8b92
packages/trpc/src/routers/widget.ts
@@ -23,7 +23,7 @@ const uid = new ShortUniqueId({ length: 6 });
23
24
// Helper to find widget by projectId and type
25
async function findWidgetByType(projectId: string, type: string) {
26
- const widgets = await db.shareWidget.findMany({
+ const widgets = await db.$primary().shareWidget.findMany({
27
where: { projectId },
28
});
29
return widgets.find(
0 commit comments