diff --git a/src/interceptors/audit-log.interceptor.ts b/src/interceptors/audit-log.interceptor.ts index 189fc1d52..999fcb553 100644 --- a/src/interceptors/audit-log.interceptor.ts +++ b/src/interceptors/audit-log.interceptor.ts @@ -41,7 +41,7 @@ export class AuditLogger implements NestInterceptor { if (auditLog) { if (typeof auditLog === 'string') auditLog = [auditLog]; const request = context.switchToHttp().getRequest() as UserRequest; - const groupId = parseInt(request.params.id); + const groupId = parseInt(request.params.groupId); if (isNaN(groupId)) throw new BadGatewayException(GROUP_NOT_FOUND); const ip = getClientIp(request); const location = await this.geolocationService.getLocation(ip);