fix(backend): Use Prisma connect pattern for waitlist-listing relation

Use StoreListing relation with connect pattern instead of directly
setting storeListingId, which doesn't work with Prisma's typed update.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Nicholas Tindle
2026-01-07 22:01:18 -07:00
parent d4ecdb64ed
commit 8d82e3b633

View File

@@ -2357,8 +2357,7 @@ async def link_waitlist_to_listing_admin(
waitlist = await prisma.models.WaitlistEntry.prisma().update(
where={"id": waitlist_id},
# TODO: fix this properly in prisma by making sure this is setable. surely theres somewhere else we've done something like this
data={"storeListingId": store_listing_id},
data={"StoreListing": {"connect": {"id": store_listing_id}}},
include={"joinedUsers": True},
)