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:
1 parent
2c91c0e309
commit
c8de8ca681
6 files changed
+20
-10
No files matched your search
@@ -84,6 +84,9 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
||||
where: {
|
||||
userId: parsedUserId,
|
||||
accepted: true,
|
||||
team: {
|
||||
slug: { not: null },
|
||||
},
|
||||
},
|
||||
select: {
|
||||
teamId: true,
|
||||
|
||||
Reference in new issue
Block a user