Skip to content
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

Update delete to use params #116

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

joshr4
Copy link
Contributor

@joshr4 joshr4 commented Oct 2, 2023

No description provided.

@@ -120,7 +121,7 @@ const remove_from_library = asyncHandler(async (req, res, next) => {
where: {
user_id: pubkey,
content_id: {
in: contentIds,
in: [id],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still using deleteMany here, since prisma won't allow us to delete a single row with non-unique values in the where clause

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

though it looks like this may be available in a newer release - prisma/prisma#7290

@blastshielddown blastshielddown merged commit 08c4baf into staging Oct 2, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants