(authId: string, communityId: string)
| 76 | } |
| 77 | |
| 78 | static async canAuthAccessCommunity(authId: string, communityId: string) { |
| 79 | return await prisma.auths.findFirst({ |
| 80 | where: { |
| 81 | id: authId, |
| 82 | users: { |
| 83 | some: { |
| 84 | account: { id: communityId }, |
| 85 | }, |
| 86 | }, |
| 87 | }, |
| 88 | }); |
| 89 | } |
| 90 | |
| 91 | static async canAuthAccessThread(authId: string, threadId: string) { |
| 92 | return await prisma.auths.findFirst({ |