MCPcopy Create free account
hub / github.com/bsoc-bitbyte/busify / constructor

Method constructor

backend/src/Auth/utils/admin.guard.ts:11–11  ·  view source on GitHub ↗
(private prismaService: PrismaService)

Source from the content-addressed store, hash-verified

9@Injectable()
10export class AdminGuard implements CanActivate {
11 constructor(private prismaService: PrismaService) {}
12 async validateAdmin(userId: string) {
13 const user = await this.prismaService.users.findUnique({
14 where: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected