mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-08 17:08:18 +00:00
IAM related required updates
This commit is contained in:
@@ -133,4 +133,10 @@ export class AgentsService {
|
||||
take: 20
|
||||
});
|
||||
}
|
||||
|
||||
async getMe(iamUserId: string) {
|
||||
const agent = await this.prisma.agent.findUnique({ where: { iamUserId } });
|
||||
if (!agent) throw new NotFoundException('No agent profile found for this user');
|
||||
return agent;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user