The problem is, that you want to update a relation field of cart. It seems like updateMany can’t do that at the time, however the documentation is cloudy about it. So I don’t know, whether its a bug or the feature is missing. But it would be useful!!!
I have a similar thing. These ‘strapi-isms’ as we call them at work now are so annoying.
I am doing the same query and getting the error:
update "public"."ticket_purchases" set "status" = $1 where ("t2"."id" in ($2)) - missing FROM-clause entry for table "t2"
error: update "public"."ticket_purchases" set "status" = $1 where ("t2"."id" in ($2)) - missing FROM-clause entry for table "t2"