Skip to content

Commit

Permalink
[완료] pull from origin main
Browse files Browse the repository at this point in the history
  • Loading branch information
erickimme committed Oct 19, 2023
1 parent 132233a commit 9fc95f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions src/events/events.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import {
ParseIntPipe,
UploadedFile,
UseInterceptors,
Query,
} from '@nestjs/common';
import { EventsService } from './events.service';
import { CreateEventDto } from './dto/create-event.dto';
Expand Down Expand Up @@ -53,7 +52,6 @@ export class EventsController {
@ApiOperation({ summary: '호스트로 Event 생성' })
@ApiCreatedResponse({ type: EventEntity })
create(@Req() req: RequestWithUser, @Body() createEventDto: CreateEventDto) {
console.log("here", createEventDto)
const { userId } = req.user; // request에 user 객체가 추가되었고 userId에 값 할당

return this.eventsService.create(userId, createEventDto);
Expand Down Expand Up @@ -150,7 +148,6 @@ export class EventsController {

const isJoin = await this.eventsService.isJoin(eventId, userId);
if (!isJoin) {
<<<<<<< HEAD
this.eventsService.join(+eventId, userId);
this.eventsService.createRsvpLog(eventId, userId, 'applied'); // 참가 신청 로그 생성
return `${eventId}번 모임 참석 신청!`;
Expand All @@ -159,16 +156,6 @@ export class EventsController {
this.eventsService.cancelJoin(isJoin.guestEventId);
this.eventsService.createRsvpLog(eventId, userId, 'canceled'); // 참가 취소 로그 생성
return `${eventId}번 모임 신청 취소!`;
=======
this.eventsService.join(eventId, userId);
this.eventsService.createRsvpLog(eventId, userId, 'applied'); // 로그 생성
return `${eventId}번 모임 참석 신청`;
}
if (isJoin) {
this.eventsService.cancelJoin(isJoin.guestEventId);
this.eventsService.createRsvpLog(eventId, userId, 'canceled'); // 로그 생성
return `${eventId}번 모임 참석 취소 `;
>>>>>>> 91ef7e642d08985b48033ecbc88dc73bf311dfa8
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class UsersService {
}
else {
// nameChanged = true 면 닉네임을 바꿨다는 거니까 닉네임을 포함해서 업데이트
// 중복된 닉네임 확인
// 중복된 닉네임 확인
const existingNickname = await this.prisma.userDetail.findUnique({
where: { nickname },
});
Expand Down

0 comments on commit 9fc95f6

Please sign in to comment.