diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index 05562a92..54ead7a7 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -20,4 +20,5 @@ model User { model Room { id Int @id @default(autoincrement()) name String -} \ No newline at end of file + users User[] +} diff --git a/backend/src/room/room.controller.ts b/backend/src/room/room.controller.ts index 383f4777..f2fcca58 100644 --- a/backend/src/room/room.controller.ts +++ b/backend/src/room/room.controller.ts @@ -39,7 +39,10 @@ export class RoomController { @Patch(':id') @ApiOkResponse({ type: RoomEntity }) - update(@Param('id', ParseIntPipe) id: number, @Body() updateRoomDto: UpdateRoomDto) { + update( + @Param('id', ParseIntPipe) id: number, + @Body() updateRoomDto: UpdateRoomDto, + ) { return this.roomService.update(id, updateRoomDto); }