Skip to content

Commit

Permalink
[fix] #164 - 입금여부수정 api 경로 수정 및 dev db 초기화 (#165)
Browse files Browse the repository at this point in the history
* [#164] fix(TicketController): 예매자 입금여부 수정 api 경로 수정

* [#164] chore(application-dev): dev db 초기화
  • Loading branch information
hyerinhwang-sailin authored Aug 7, 2024
1 parent 405880a commit 1c57c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ public ResponseEntity<SuccessResponse<TicketRetrieveResponse>> getTickets(
}

@Operation(summary = "예매자 입금여부 수정 및 웹발신 API", description = "메이커가 자신의 공연에 대한 예매자의 입금여부 정보를 수정한 뒤 예매확정 웹발신을 보내는 PUT API입니다.")
@PutMapping("/{performanceId}") // 이 부분 body로 performanceId를 넘기기에 수정 필요!!
@PutMapping
public ResponseEntity<SuccessResponse<Void>> updateTickets(
@CurrentMember Long memberId,
@PathVariable Long performanceId,
@RequestBody TicketUpdateRequest request) {
ticketService.updateTickets(memberId, request);
return ResponseEntity.ok(SuccessResponse.of(BookingSuccessCode.TICKET_UPDATE_SUCCESS, null));
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spring:

jpa:
hibernate:
ddl-auto: update
ddl-auto: create
show-sql: true
properties:
hibernate:
Expand Down

0 comments on commit 1c57c10

Please sign in to comment.