Stuff
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Body, Controller, Get, Param, Post } from '@nestjs/common';
|
||||
import { Body, Controller, Get, Param, Post, Req, Session } from '@nestjs/common';
|
||||
import { GroupEventsService } from '../application/group-events.service';
|
||||
import { IncomingGroupEventDto } from '../dto/group-event.dto';
|
||||
|
||||
@@ -17,13 +17,13 @@ export class GroupEventsController {
|
||||
}
|
||||
|
||||
@Get()
|
||||
getEvents() {
|
||||
return this.groupsEventsService.getLastTenEvents();
|
||||
getEvents(@Session() session: Record<string, any>) {
|
||||
return this.groupsEventsService.getLastEvents({});
|
||||
}
|
||||
|
||||
@Get(':groupdId')
|
||||
getGroupEvents(@Param('groupId') groupId: string) {
|
||||
return this.groupsEventsService.getLastTenEvents(groupId);
|
||||
return this.groupsEventsService.getLastEvents({groupId});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user