From 3d6cbd38c22750719793641d470971ce136ba0a7 Mon Sep 17 00:00:00 2001 From: lim Date: Sat, 11 Nov 2023 13:39:23 +0900 Subject: [PATCH] [clean] make fmt --- backend/prisma/schema.prisma | 3 ++- backend/src/room/room.controller.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) 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); }