From 8d82e3b633dc57b1fd8508bfabec56a97d909864 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Wed, 7 Jan 2026 22:01:18 -0700 Subject: [PATCH] fix(backend): Use Prisma connect pattern for waitlist-listing relation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- autogpt_platform/backend/backend/api/features/store/db.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autogpt_platform/backend/backend/api/features/store/db.py b/autogpt_platform/backend/backend/api/features/store/db.py index 271bd29c41..9aadec67bf 100644 --- a/autogpt_platform/backend/backend/api/features/store/db.py +++ b/autogpt_platform/backend/backend/api/features/store/db.py @@ -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}, )