Skip to content
Snippets Groups Projects
Verified Commit 9086ebee authored by Adrian Paschkowski's avatar Adrian Paschkowski :thinking:
Browse files

Fix getAgent being gated behing group auth

parent ab38bc51
No related branches found
No related tags found
No related merge requests found
......@@ -14,11 +14,11 @@ import { GroupAuthGuard } from '../auth/group-auth.guard';
import { Request } from 'express';
@Resolver(() => Agent)
@UseGuards(GroupAuthGuard)
export class AgentResolver {
constructor(private prismaService: PrismaService) {}
@Query(() => [Agent])
@UseGuards(GroupAuthGuard)
listAgents(@Context() { req }: { req: Request }) {
return this.prismaService.agent.findMany({
where: {
......@@ -41,6 +41,7 @@ export class AgentResolver {
}
@ResolveField('entries')
@UseGuards(GroupAuthGuard)
async entries(
@Parent() entry: Agent,
@Context() { req }: { req: Request },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment