fix: don't use unpublished org in any credit context (#22600)

* fix: don't use unpublished org for any credit context

* type error

* fix test

* update
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-07-18 10:03:50 +00:00
1 parent 2c91c0e309
commit c8de8ca681
6 files changed
+20 -10

No files matched your search

+3
View File
@@ -84,6 +84,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
where: {
userId: parsedUserId,
accepted: true,
team: {
slug: { not: null },
},
},
select: {
teamId: true,