IAM related required updates

This commit is contained in:
Stephanos A
2026-06-24 19:53:05 +03:00
parent d94e0e9d35
commit 58967e6e3d
19 changed files with 240 additions and 142 deletions

View File

@@ -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;
}
}