Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
🐛 Use groupId request param
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Nov 15, 2020
1 parent 150f42f commit 3d73c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interceptors/audit-log.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d73c61

Please sign in to comment.