Skip to content
Snippets Groups Projects
Commit aa9fe32d authored by Daniel Gerdes's avatar Daniel Gerdes
Browse files

Revert "Resolve field tokenCode in AgentResolver" (stupid idea)

This reverts commit 574c1083.
parent ea7801c7
No related branches found
No related tags found
No related merge requests found
......@@ -36,23 +36,6 @@ export class AgentResolver {
return agent;
}
@ResolveField('tokenCode')
async tokenCode(
@Parent() agent: Agent,
@Context() { req }: { req: Request },
){
const result = await this.prismaService.agent.findFirst({
where:{
id: agent.id,
},
include:{
tokenCode: true
}
});
return result.tokenCode;
}
@ResolveField('entries')
async entries(
@Parent() entry: Agent,
......
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