(private prismaService: PrismaService)
| 9 | @Injectable() |
| 10 | export class AdminGuard implements CanActivate { |
| 11 | constructor(private prismaService: PrismaService) {} |
| 12 | async validateAdmin(userId: string) { |
| 13 | const user = await this.prismaService.users.findUnique({ |
| 14 | where: { |
nothing calls this directly
no outgoing calls
no test coverage detected