daniel-melanson / cookbookie

Recipe saving, searching, and scheduling.
1 stars 0 forks source link

Prisma client does not correctly update many to many relations #36

Open RyeCai opened 9 months ago

RyeCai commented 9 months ago

Describe the bug The Prisma client does not update a user's allergens list even when correctly inputting a list of tag ID's.

To Reproduce Steps to reproduce the behavior:

  1. Go to the /onboarding page after signing in or registering
  2. Enter a first name
  3. Select any number of tags for dietary restrictions
  4. Look at Prisma Studio or look at the return value of the update operation to see if user allergens update.

Expected behavior The user allergens field connects to the corresponding tags

Additional Context User and Tags is a many to many relation