mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 21:08:12 +00:00
feat( iam ): integrate IAM for auth — register, login, lazy provisioning
This commit is contained in:
@@ -20,9 +20,9 @@ export class SessionActivityInterceptor implements NestInterceptor {
|
||||
const response = context.switchToHttp().getResponse();
|
||||
const user = request.user;
|
||||
|
||||
if (user?.userId) {
|
||||
if (user?.id) {
|
||||
const session = await this.prisma.session.findFirst({
|
||||
where: { userId: user.userId },
|
||||
where: { userId: user.id },
|
||||
orderBy: { lastActivityAt: 'desc' },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user