fix: read issues

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-20 06:40:33 +01:00
parent 4b2db351c4
commit 13d8b92cf3

View File

@@ -23,7 +23,7 @@ const uid = new ShortUniqueId({ length: 6 });
// Helper to find widget by projectId and type
async function findWidgetByType(projectId: string, type: string) {
const widgets = await db.shareWidget.findMany({
const widgets = await db.$primary().shareWidget.findMany({
where: { projectId },
});
return widgets.find(