Skip to content

Commit

Permalink
Fix PrismaClientValidationError The select statement must not be …
Browse files Browse the repository at this point in the history
…empty
  • Loading branch information
michaelschwobe committed Dec 19, 2023
1 parent 7525639 commit 1e78473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/bookmark.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export async function favoriteBookmark({
}) {
return await prisma.bookmark.update({
data: { favorite },
select: {},
select: { id: true },
where: { id, userId },
});
}
Expand Down

0 comments on commit 1e78473

Please sign in to comment.