Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Nest.js
- nestwinston
- 카카오페이테스트결제
- 좌석만들기
- 좌석생성
- TYPESCRIPT좌석생성
- TypeORMconfig.ts
- 내일배움캠프
- 좌석내가격
- Live server
- NEST좌석
- 네스트로거
- 테스트결제
- javascript
- Nest
- ormconfig.ts
- NEST좌석생성
- joi vs classvalidation
- 로그파일저장
- 캐시메모리저장후DB저장
- 포트원
- 자바스크립트
- cachememory
- CRUD
- devcamp
- Til
- TypeORMconfig
- Class Validation
- get
- 캐시메모리DB저장
Archives
- Today
- Total
목록좌석내가격 (1)
배씨의 개발일지
좌석 생성 2번째 - 좌석의 타입별로 가격 넣어주기
어제 만들었던 좌석에 좌석의 가격을 넣어주고 그걸 조회하는 걸 생성했다. Room안에 seat가 들어가 있고 seatPrice에 type과 price을 넣어주고 RoomId로 조회 시 seat와 해당하는 type의 가격이 출력되도록 구현. async createPrice(seatId: number, data: createSeatInfoDto) { const seat = await this.seatRepository.findOne({ where: { seatId }, select: ['type'], }); const seatPrice = new SeatPrice(); seatPrice.type = seat.type; seatPrice.price = data.price; seatPrice.seatId = s..
TIL
2023. 9. 6. 20:48