Skip to content

Commit 13d8b92

Browse files
committed
fix: read issues
1 parent 4b2db35 commit 13d8b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/trpc/src/routers/widget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const uid = new ShortUniqueId({ length: 6 });
2323

2424
// Helper to find widget by projectId and type
2525
async function findWidgetByType(projectId: string, type: string) {
26-
const widgets = await db.shareWidget.findMany({
26+
const widgets = await db.$primary().shareWidget.findMany({
2727
where: { projectId },
2828
});
2929
return widgets.find(

0 commit comments

Comments
 (0)